summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-09-03 21:43:05 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-09-03 21:43:05 +0300
commitde4f20ace35037a510aafcf49a3d78637d7248b6 (patch)
tree9a1b570d7af25a16a656a824dcc6577b8b774a4d /slstatus.c
parentb650c438f0dc049d98e339e66eeffd7650774a5d (diff)
removed UPDATE_INTERVAL, it is neat to have it but removing it is a tradeoff worth making, because the clock would act weird if this used to work with cpu_perc().
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/slstatus.c b/slstatus.c
index 2e57fbb..ab461c8 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -147,7 +147,6 @@ cpu_perc(void)
fscanf(fp, "%*s %Lf %Lf %Lf %Lf", &a[0], &a[1], &a[2], &a[3]);
fclose(fp);
- /* wait a second (for avg values) */
sleep(1);
fp = fopen("/proc/stat","r");
@@ -637,7 +636,6 @@ main(void)
XStoreName(dpy, DefaultRootWindow(dpy), status_string);
XSync(dpy, False);
- sleep(UPDATE_INTERVAL -1);
}
/* NOT REACHED */