And of course, removing some debug code.

pull/14/head
Tim Su 16 years ago
parent 88e6d9179a
commit 2354be6f40

@ -117,7 +117,6 @@ public class Notifications extends BroadcastReceiver {
interval = task.getNotificationIntervalSeconds(); interval = task.getNotificationIntervalSeconds();
int currentSeconds = (int)(System.currentTimeMillis() / 1000); int currentSeconds = (int)(System.currentTimeMillis() / 1000);
int untilNextInterval = interval - currentSeconds % interval; int untilNextInterval = interval - currentSeconds % interval;
untilNextInterval = 60;
untilNextInterval *= FUDGE_MIN + random.nextFloat() * (FUDGE_MAX - FUDGE_MIN); untilNextInterval *= FUDGE_MIN + random.nextFloat() * (FUDGE_MAX - FUDGE_MIN);
if(untilNextInterval < MIN_INTERVAL_SECONDS) if(untilNextInterval < MIN_INTERVAL_SECONDS)
untilNextInterval = MIN_INTERVAL_SECONDS; untilNextInterval = MIN_INTERVAL_SECONDS;

Loading…
Cancel
Save