From be12b6b350c7cf2ea826d3988371efb680b4ba30 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 12 Aug 2017 13:06:24 +0200 Subject: Removed #define for update interval Debugging #define, especially in mathematical constructs is very difficult. The performance overhead of static const int is negligible. --- slstatus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slstatus.c') diff --git a/slstatus.c b/slstatus.c index aa05cd1..228c19b 100644 --- a/slstatus.c +++ b/slstatus.c @@ -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; } } -- cgit v1.2.3