Removed #define for update interval
Debugging #define, especially in mathematical constructs is very difficult. The performance overhead of static const int is negligible.
This commit is contained in:
parent
0c2ee7df91
commit
be12b6b350
2 changed files with 3 additions and 3 deletions
|
@ -914,11 +914,11 @@ main(int argc, char *argv[])
|
|||
XSync(dpy, False);
|
||||
}
|
||||
|
||||
if ((UPDATE_INTERVAL - delay) <= 0) {
|
||||
if ((update_interval - delay) <= 0) {
|
||||
delay = 0;
|
||||
continue;
|
||||
} else {
|
||||
sleep(UPDATE_INTERVAL - delay);
|
||||
sleep(update_interval - delay);
|
||||
delay = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue