From aa418e19eea616cdd499fb8a947fa4091302beb4 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Tue, 20 Nov 2007 18:26:31 +0000 Subject: [PATCH] If the reboot time requested is at exactly the right time for the warning, we can use that warning and not require to go to the next level. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4877 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/server/RebootManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/server/RebootManager.java b/src/java/com/threerings/presents/server/RebootManager.java index 3d86ca047..9527abb93 100644 --- a/src/java/com/threerings/presents/server/RebootManager.java +++ b/src/java/com/threerings/presents/server/RebootManager.java @@ -144,7 +144,7 @@ public abstract class RebootManager long now = System.currentTimeMillis(); for (int ii = WARNINGS.length - 1; ii >= 0; ii--) { long warnTime = WARNINGS[ii] * 60 * 1000; - if (now + warnTime > _nextReboot) { + if (now + warnTime >= _nextReboot) { doWarning(ii); return; }