forked from I2P_Developers/i2p.i2p
add restart msg as requested by dr|z3d
This commit is contained in:
@ -54,7 +54,12 @@ public class ConfigRestartBean {
|
|||||||
long timeRemaining = ctx.router().getShutdownTimeRemaining();
|
long timeRemaining = ctx.router().getShutdownTimeRemaining();
|
||||||
StringBuilder buf = new StringBuilder(128);
|
StringBuilder buf = new StringBuilder(128);
|
||||||
if ((shuttingDown || restarting) && timeRemaining <= 0) {
|
if ((shuttingDown || restarting) && timeRemaining <= 0) {
|
||||||
buf.append("<center><b>").append(_("Shutdown imminent", ctx)).append("</b></center>");
|
buf.append("<center><b>");
|
||||||
|
if (restarting)
|
||||||
|
buf.append(_("Restart imminent", ctx));
|
||||||
|
else
|
||||||
|
buf.append(_("Shutdown imminent", ctx));
|
||||||
|
buf.append("</b></center>");
|
||||||
} else if (shuttingDown) {
|
} else if (shuttingDown) {
|
||||||
buf.append("<center><b>");
|
buf.append("<center><b>");
|
||||||
buf.append(_("Shutdown in {0}", DataHelper.formatDuration(timeRemaining), ctx));
|
buf.append(_("Shutdown in {0}", DataHelper.formatDuration(timeRemaining), ctx));
|
||||||
|
Reference in New Issue
Block a user