#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"
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");
XStoreName(dpy, DefaultRootWindow(dpy), status_string);
XSync(dpy, False);
- sleep(UPDATE_INTERVAL -1);
}
/* NOT REACHED */