From c5b3c2f4304a0af233be9a9335a6168148cf0080 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sun, 6 Dec 2009 15:17:47 +0000
Subject: [PATCH] add restart msg as requested by dr|z3d

---
 .../java/src/net/i2p/router/web/ConfigRestartBean.java     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java
index 6570394003..aacdfc91a9 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java
@@ -54,7 +54,12 @@ public class ConfigRestartBean {
         long timeRemaining = ctx.router().getShutdownTimeRemaining();
         StringBuilder buf = new StringBuilder(128);
         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) {
             buf.append("<center><b>");
             buf.append(_("Shutdown in {0}", DataHelper.formatDuration(timeRemaining), ctx));
-- 
GitLab