add update_interval

add a short sleep to reduce load
This commit is contained in:
Daniel Walter 2016-03-10 11:55:42 +01:00
parent 410ba38a01
commit 5295629c4f
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,9 @@ static const char batteryfullfile[] = "/sys/class/power_supply/BAT0/energy_full_
/* time */ /* time */
static const char timeformat[] = "%y-%m-%d %H:%M:%S"; static const char timeformat[] = "%y-%m-%d %H:%M:%S";
/* bar update interval in seconds */
static unsigned int update_interval = 10;
/* statusbar /* statusbar
Possible arguments: Possible arguments:
- battery (battery percentage) - battery (battery percentage)

View File

@ -343,6 +343,7 @@ main()
free(ram_usage); free(ram_usage);
free(volume); free(volume);
free(wifi_signal); free(wifi_signal);
sleep(update_interval);
} }
/* close display */ /* close display */