mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
llua: expose cpu_count
This avoids having to hardcode the CPU count, and crashing with scripts with too many cpus prepared (typically rings).
This commit is contained in:
parent
389d24b4e0
commit
3355740d23
@ -533,7 +533,7 @@ void llua_setup_info(struct information *i, double u_interval) {
|
||||
lua_newtable(lua_L);
|
||||
|
||||
llua_set_number("update_interval", u_interval);
|
||||
(void)i;
|
||||
llua_set_number("cpu_count", i->cpu_count);
|
||||
|
||||
lua_setglobal(lua_L, "conky_info");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user