From 760b917114778a0441f235743a9dc6de353c27f8 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 31 Oct 2009 16:30:44 +0000 Subject: [PATCH] System loads are floats --- libs/nixio/src/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.25.1