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().
This commit is contained in:
parent
b650c438f0
commit
de4f20ace3
2 changed files with 0 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue