1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 20:44:56 +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:
François Revol 2018-10-19 01:30:51 +02:00 committed by Brenden Matthews
parent 389d24b4e0
commit 3355740d23

View File

@ -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");
}