summaryrefslogtreecommitdiffstats
path: root/health-system-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'health-system-html.lsp')
-rw-r--r--health-system-html.lsp68
1 files changed, 30 insertions, 38 deletions
diff --git a/health-system-html.lsp b/health-system-html.lsp
index d07b155..b4a352f 100644
--- a/health-system-html.lsp
+++ b/health-system-html.lsp
@@ -4,24 +4,17 @@
<h1>System</h1>
<h2>Versions and names</h2>
-<DL>
<pre><%= html.html_escape(view.value.version.value) %></pre>
<pre><%= html.html_escape(view.value.uname.value) %></pre>
-</DL>
<h2>Uptime</h2>
-<DL>
<pre><%= html.html_escape(view.value.uptime.value) %></pre>
-</DL>
<h2>Time/TimeZone</h2>
-<DL>
<pre><%= html.html_escape(view.value.date.value) %></pre>
<pre><%= html.html_escape(view.value.timezone.value) %></pre>
-</DL>
<h2>Memory</h2>
-<DL>
<pre><%= html.html_escape(view.value.memory.value) %></pre>
<%
@@ -32,34 +25,33 @@ local function print_percent(val)
end
%>
-<TABLE STYLE="margin:0px;padding:0px;border:0px">
- <TR>
- <TD>0%</TD>
- <TD WIDTH="<%= html.html_escape(view.value.memory.used) %>%"
- STYLE="background:red;border:2px solid black;border-right:none;">
- <CENTER><B><% print_percent(view.value.memory.used) %></B></CENTER>
- </TD>
- <TD WIDTH="<%= html.html_escape(view.value.memory.buffers) %>%"
- STYLE="background:yellow;border:2px solid black;">
- <CENTER><B><% print_percent(view.value.memory.buffers) %></B></CENTER>
- </TD>
- <TD WIDTH="<%= tonumber(view.value.memory.free) %>%"
- STYLE="background:#0c0;border:2px solid black;border-left:none;">
- <CENTER><B><% print_percent(view.value.memory.free) %></B></CENTER>
- </TD>
- <TD>100%</TD>
- </TR>
-</TABLE>
-
-<TABLE STYLE="margin:0px;padding:0px;border:0px;margin-top:5px;">
- <TR>
- <TD WIDTH="100px"><B>Legend:</B></TD>
- <TD STYLE="background:red;;border:2px solid black;" WIDTH="20px"></TD>
- <TD WIDTH="70px"><B>=Used</B></TD>
- <TD STYLE="background:yellow;;border:2px solid black;" WIDTH="20px"></TD>
- <TD WIDTH="70px"><B>=Buffers / Cached</B></TD>
- <TD STYLE="background:#0c0;border:2px solid black;" WIDTH="20px"></TD>
- <TD><B>=Free</B></TD>
- </TR>
-</TABLE>
-</DL>
+<table style="margin:0px;padding:0px;border:0px">
+ <tr>
+ <td>0%</td>
+ <td width="<%= html.html_escape(view.value.memory.used) %>%"
+ style="background:red;border:2px solid black;border-right:none;">
+ <center><b><% print_percent(view.value.memory.used) %></b></center>
+ </td>
+ <td width="<%= html.html_escape(view.value.memory.buffers) %>%"
+ style="background:yellow;border:2px solid black;">
+ <center><b><% print_percent(view.value.memory.buffers) %></b></center>
+ </td>
+ <td width="<%= tonumber(view.value.memory.free) %>%"
+ style="background:#0c0;border:2px solid black;border-left:none;">
+ <center><b><% print_percent(view.value.memory.free) %></b></center>
+ </td>
+ <td>100%</td>
+ </tr>
+</table>
+
+<table style="margin:0px;padding:0px;border:0px;margin-top:5px;">
+ <tr>
+ <td width="100px"><b>Legend:</b></td>
+ <td style="background:red;;border:2px solid black;" width="20px"></td>
+ <td width="70px"><b>=Used</b></td>
+ <td style="background:yellow;;border:2px solid black;" width="20px"></td>
+ <td width="70px"><b>=buffers / Cached</b></td>
+ <td style="background:#0c0;border:2px solid black;" width="20px"></td>
+ <td><b>=Free</b></td>
+ </tr>
+</table>