diff options
author | Steven Barth <steven@midlink.org> | 2008-08-16 23:17:50 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-16 23:17:50 +0000 |
commit | 510fde01188d1a9a903c2d56b83f498a1e6666b8 (patch) | |
tree | 8b36dc4af7e96a86f21f67b5ef23a40fd7072624 /modules/freifunk | |
parent | 32f2f12438f29ab2b0423d434f08e7bd2d1c755f (diff) |
Added status information
Minor Cleanups
Diffstat (limited to 'modules/freifunk')
-rw-r--r-- | modules/freifunk/luasrc/controller/freifunk/freifunk.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua index 717972636..07b12f3f7 100644 --- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua +++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua @@ -67,8 +67,10 @@ end function action_status() local data = {} - data.system, data.model, data.memtotal, data.memcached, data.membuffers, data.memfree, data.perc_memfree, data.perc_membuffers, data.perc_memcached = luci.sys.sysinfo() - + data.system, data.model, data.memtotal, data.memcached, data.membuffers, data.memfree = luci.sys.sysinfo() + data.perc_memfree = math.floor((data.memfree/data.memtotal)*100) + data.perc_membuffers = math.floor((data.membuffers/data.memtotal)*100) + data.perc_memcached = math.floor((data.memcached/data.memtotal)*100) data.wifi = luci.sys.wifi.getiwconfig() |