diff --git a/resources/WebContent/index.tmpl b/resources/WebContent/index.tmpl index 12bc70f..8b31bb9 100644 --- a/resources/WebContent/index.tmpl +++ b/resources/WebContent/index.tmpl @@ -9,6 +9,13 @@ + + + + + + + @@ -83,10 +90,5 @@ --> - - - - - \ No newline at end of file diff --git a/src/wa/server/page/StatusPage.java b/src/wa/server/page/StatusPage.java index 4eb8eb4..b397819 100644 --- a/src/wa/server/page/StatusPage.java +++ b/src/wa/server/page/StatusPage.java @@ -50,11 +50,14 @@ public class StatusPage extends AbstractPage{ Map session, Map cookie, Map request) { - if(request.containsKey("i")) { - WAStatus obj = getPlugin(Integer.parseInt(request.get("i"))); - if(obj != null) - return new Templator(obj.html()); - } + WAStatus obj = null; + if(request.containsKey("i")) + obj = getPlugin(Integer.parseInt(request.get("i"))); + else + obj = getPlugin(0); + + if(obj != null) + return new Templator(obj.html()); return null; } diff --git a/src/wa/server/plugin/hwstatus/CpuStatus.tmpl b/src/wa/server/plugin/hwstatus/CpuStatus.tmpl index 4de50c6..3897505 100644 --- a/src/wa/server/plugin/hwstatus/CpuStatus.tmpl +++ b/src/wa/server/plugin/hwstatus/CpuStatus.tmpl @@ -1,39 +1,98 @@ -
+
Cpu Status
-
+
-
+
+
+
Memory
+
+
+
+
+
+
Process List
+
+
+
+
+
+