summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-10-31 16:30:44 +0000
committerSteven Barth <steven@midlink.org>2009-10-31 16:30:44 +0000
commit760b917114778a0441f235743a9dc6de353c27f8 (patch)
treeebc41f58c6716c36a1c4ab4e7a93d73e63c573b3 /libs/nixio/src
parent810e05293009b51461652b3e3d2d4ebd6427c02b (diff)
System loads are floats
Diffstat (limited to 'libs/nixio/src')
-rw-r--r--libs/nixio/src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/process.c b/libs/nixio/src/process.c
index 536acd7ff..f3bb2f400 100644
--- 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_pushinteger(L, info.loads[i] / 65536.);
+ lua_pushnumber(L, info.loads[i] / 65536.);
lua_rawseti(L, -2, i+1);
}
lua_setfield(L, -2, "loads");