diff options
author | Steven Barth <steven@midlink.org> | 2008-03-12 20:52:28 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-12 20:52:28 +0000 |
commit | ffe39ec1babf58fef087bd580d7ad0725d9b3389 (patch) | |
tree | 35c2822aa9dd1e2640324856cb0b467df582c9cf /src/ffluci/view | |
parent | 93a98dd13be5127871ff78d85e8199f2df77e9c2 (diff) |
Added module for system abstraction
Rewrote readfile and exec functions
Moved some orpahned example file out of the way
Diffstat (limited to 'src/ffluci/view')
-rw-r--r-- | src/ffluci/view/header.htm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ffluci/view/header.htm b/src/ffluci/view/header.htm index 2c0836be5..44826f059 100644 --- a/src/ffluci/view/header.htm +++ b/src/ffluci/view/header.htm @@ -1,4 +1,6 @@ <% +require("ffluci.sys") +local load1, load5, load15 = ffluci.sys.loadavg() local req = require("ffluci.dispatcher").request local menu = require("ffluci.menu").get()[req.category] require("ffluci.i18n").loadc("default") @@ -16,8 +18,8 @@ require("ffluci.http").htmlheader() <div class="whitetext smalltext right"> OpenWRT Kamikaze<br /> Freifunk Firmware 2.0-dev<br /> - Load average: 1.00 2.00 3.00<br /> - 1.2.3.4 - host1 + <%:load Last%>: <%=load1%> <%=load5%> <%=load15%><br /> + <%:hostname Hostname%>: <%=ffluci.sys.hostname()%> </div> <div> <span class="headertitle">Freifunk Kamikaze</span><br /> |