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
This commit is contained in:
Mike Thomas
2007-11-20 18:26:31 +00:00
parent 31dbdc78be
commit aa418e19ee
@@ -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;
}