Changeset 6650 for luci/trunk/libs/sys/luasrc/sys.lua
- Timestamp:
- 12/15/10 17:35:19 (2 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/sys/luasrc/sys.lua (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/sys/luasrc/sys.lua
r6566 r6650 167 167 -- @return String containing the memory used for buffering in kB 168 168 -- @return String containing the free memory amount in kB 169 -- @return String containing the cpu bogomips (number) 169 170 function sysinfo() 170 171 local cpuinfo = fs.readfile("/proc/cpuinfo") … … 177 178 local memfree = tonumber(meminfo:match("MemFree:%s*(%d+)")) 178 179 local membuffers = tonumber(meminfo:match("Buffers:%s*(%d+)")) 180 local bogomips = tonumber(cpuinfo:match("BogoMIPS.-:%s*([^\n]+)")) 179 181 180 182 if not system then … … 188 190 end 189 191 190 return system, model, memtotal, memcached, membuffers, memfree 192 return system, model, memtotal, memcached, membuffers, memfree, bogomips 191 193 end 192 194
