diff options
author | Aaron Marcher <me@drkhsh.at> | 2017-08-12 13:06:24 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-08-12 13:16:12 +0200 |
commit | be12b6b350c7cf2ea826d3988371efb680b4ba30 (patch) | |
tree | 9c8c1a30d30253b418d0553f86001f1762ac6341 /slstatus.c | |
parent | 0c2ee7df91bfd72c8d51bf1234a2d8571931bdf1 (diff) |
Removed #define for update interval
Debugging #define, especially in mathematical constructs is very
difficult. The performance overhead of static const int is negligible.
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 4 |
1 files changed, 2 insertions, 2 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; } } |