mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-12 19:06:36 +00:00
lua: remove useless conky_info 'uptime' table (#612)
This commit is contained in:
parent
0edc80bf9b
commit
41f920671c
@ -118,10 +118,6 @@
|
|||||||
<option>Conky's update interval (in
|
<option>Conky's update interval (in
|
||||||
seconds).</option>
|
seconds).</option>
|
||||||
</member>
|
</member>
|
||||||
<member>
|
|
||||||
<command>uptime</command>
|
|
||||||
<option>System uptime, in seconds.</option>
|
|
||||||
</member>
|
|
||||||
</simplelist>
|
</simplelist>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -536,7 +536,7 @@ void llua_setup_info(struct information *i, double u_interval) {
|
|||||||
lua_newtable(lua_L);
|
lua_newtable(lua_L);
|
||||||
|
|
||||||
llua_set_number("update_interval", u_interval);
|
llua_set_number("update_interval", u_interval);
|
||||||
llua_set_number("uptime", i->uptime);
|
(void)i;
|
||||||
|
|
||||||
lua_setglobal(lua_L, "conky_info");
|
lua_setglobal(lua_L, "conky_info");
|
||||||
}
|
}
|
||||||
@ -552,7 +552,7 @@ void llua_update_info(struct information *i, double u_interval) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
llua_set_number("update_interval", u_interval);
|
llua_set_number("update_interval", u_interval);
|
||||||
llua_set_number("uptime", i->uptime);
|
(void)i;
|
||||||
|
|
||||||
lua_setglobal(lua_L, "conky_info");
|
lua_setglobal(lua_L, "conky_info");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user