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:
parent
95f6748baa
commit
da5704fd74
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user