Moved a constant to the base class and replaced the hard-wiring there
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5615 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -104,7 +104,7 @@ public abstract class RebootManager
|
||||
}
|
||||
}
|
||||
|
||||
scheduleReboot(cal.getTimeInMillis(), "automatic");
|
||||
scheduleReboot(cal.getTimeInMillis(), AUTOMATIC_INITIATOR);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -358,4 +358,6 @@ public abstract class RebootManager
|
||||
* nextReboot field is changed, to prevent accidentally causing instant
|
||||
* server reboots. */
|
||||
public static final int[] WARNINGS = { 30, 20, 15, 10, 5, 2 };
|
||||
|
||||
protected static final String AUTOMATIC_INITIATOR = "automatic";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user