Skip to content
Snippets Groups Projects
Commit b94cbddc authored by rswindell's avatar rswindell
Browse files

Lower the CPU utilization of umonitor considerably by sleeping 100ms

when there are no key presses.
parent bf3a7aca
No related branches found
No related tags found
No related merge requests found
......@@ -1011,8 +1011,10 @@ int main(int argc, char** argv) {
j=uifc.list(WIN_L2R|WIN_ESC|WIN_ACT|WIN_DYN,0,5,70,&main_dflt,&main_bar
,title,mopt);
if(j == -2)
if(j == -2) {
SLEEP(100);
continue;
}
last_semfile_check = time(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment