diff options
author | Steven Barth <steven@midlink.org> | 2009-10-31 16:30:44 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-10-31 16:30:44 +0000 |
commit | 760b917114778a0441f235743a9dc6de353c27f8 (patch) | |
tree | ebc41f58c6716c36a1c4ab4e7a93d73e63c573b3 /libs/nixio | |
parent | 810e05293009b51461652b3e3d2d4ebd6427c02b (diff) |
System loads are floats
Diffstat (limited to 'libs/nixio')
-rw-r--r-- | libs/nixio/src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/process.c b/libs/nixio/src/process.c index 536acd7fff..f3bb2f4006 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"); |