From b3122047c5b39ce2b01274bb4b14bfdb8d89f157 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 5 Jan 2009 15:48:54 +0000 Subject: Modified health network stats to move legend and make options into two columns. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1664 ab2d0c66-481e-0410-8bed-d214d4d58bed --- health-networkstats-html.lsp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/health-networkstats-html.lsp b/health-networkstats-html.lsp index e00fe1c..a19f71d 100644 --- a/health-networkstats-html.lsp +++ b/health-networkstats-html.lsp @@ -38,7 +38,7 @@ }); if (timestamp == 0 && lastdata != null) timestamp = lastdata.timestamp*1000; $.plot( - $("#chart"), data, {legend:{position:"ne", backgroundOpacity:0}, xaxis:{mode:"time", timeformat:"%H:%M:%S", min:timestamp, max:timestamp+duration}, yaxis:{min:0}}); + $("#chart"), data, {legend:{container: $("#legend")}, xaxis:{mode:"time", timeformat:"%H:%M:%S", min:timestamp, max:timestamp+duration}, yaxis:{min:0}}); } function Update(){ $.ajaxSetup({cache:false}); @@ -100,15 +100,18 @@

Network Statistics

Network traffic in bytes/second -
+
+
Display Options
+
<% for intf,val in pairs(view.value) do local ipaddr = "" if val.ipaddr then ipaddr = " ("..val.ipaddr..")" end %> -
checked="checked"><%= intf.." RX"..ipaddr %>
-
checked="checked"><%= intf.." TX"..ipaddr %>
+ + <% end %> +
checked="checked"><%= intf.." RX"..ipaddr %> checked="checked"><%= intf.." TX"..ipaddr %>
Start / Stop
-- cgit v1.2.3