add update_interval add a short sleep to reduce load
Daniel Walter d.walter@0x90.at
Thu, 10 Mar 2016 11:55:42 +0100
2 files changed,
4 insertions(+),
0 deletions(-)
M
config.def.h
→
config.def.h
@@ -17,6 +17,9 @@
/* time */ static const char timeformat[] = "%y-%m-%d %H:%M:%S"; +/* bar update interval in seconds */ +static unsigned int update_interval = 10; + /* statusbar Possible arguments: - battery (battery percentage)
M
slstatus.c
→
slstatus.c
@@ -343,6 +343,7 @@ free(datetime);
free(ram_usage); free(volume); free(wifi_signal); + sleep(update_interval); } /* close display */