1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Specifically ask for an integer from Lua for percentage

This commit is contained in:
Toni Spets 2009-05-16 20:37:53 +03:00
parent 95f6748baa
commit da5704fd74

View File

@ -118,7 +118,7 @@ int llua_getpercent(const char *args, int *per)
if(!lua_isnumber(lua_L, -1)) {
ERR("llua_getpercent: function %s didn't return a number (percent), result discarded", func);
} else {
*per = lua_tonumber(lua_L, -1);
*per = lua_tointeger(lua_L, -1);
lua_pop(lua_L, 1);
return 1;
}