all repos — slstatus @ de4f20ace35037a510aafcf49a3d78637d7248b6

my build of slstatus (tools.suckless.org/slstatus/)

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().
Ali H. Fardan raiz@firemail.cc
Sat, 03 Sep 2016 21:43:05 +0300
commit

de4f20ace35037a510aafcf49a3d78637d7248b6

parent

b650c438f0dc049d98e339e66eeffd7650774a5d

2 files changed, 0 insertions(+), 5 deletions(-)

jump to
M config.def.hconfig.def.h

@@ -8,9 +8,6 @@ #define BATTERY_PATH "/sys/class/power_supply/"

#define BATTERY_NOW "energy_now" #define BATTERY_FULL "energy_full_design" -/* bar update interval in seconds (smallest value = 1) */ -#define UPDATE_INTERVAL 1 - /* text to show if no value can be retrieved */ #define UNKNOWN_STR "n/a"
M slstatus.cslstatus.c

@@ -147,7 +147,6 @@

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 @@ }

XStoreName(dpy, DefaultRootWindow(dpy), status_string); XSync(dpy, False); - sleep(UPDATE_INTERVAL -1); } /* NOT REACHED */