projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
810e052
)
System loads are floats
author
Steven Barth
<steven@midlink.org>
Sat, 31 Oct 2009 16:30:44 +0000
(16:30 +0000)
committer
Steven Barth
<steven@midlink.org>
Sat, 31 Oct 2009 16:30:44 +0000
(16:30 +0000)
libs/nixio/src/process.c
patch
|
blob
|
history
diff --git
a/libs/nixio/src/process.c
b/libs/nixio/src/process.c
index 536acd7fffe5cbc7433ecaf717139c8d4f8f1dae..f3bb2f4006ea729fb1c7fcb538e64699aa0ebe68 100644
(file)
--- a/
libs/nixio/src/process.c
+++ b/
libs/nixio/src/process.c
@@
-379,7
+379,7
@@
static int nixio_sysinfo(lua_State *L) {
lua_createtable(L, 0, 3);
for (int i=0; i<3; i++) {
- lua_push
integ
er(L, info.loads[i] / 65536.);
+ lua_push
numb
er(L, info.loads[i] / 65536.);
lua_rawseti(L, -2, i+1);
}
lua_setfield(L, -2, "loads");