]> git.sur5r.net Git - i3/i3status/commitdiff
The load values represent 1,5,15 min, not 5,10,15 min (Thanks Chris)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 13 Dec 2009 12:59:59 +0000 (13:59 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 13 Dec 2009 12:59:59 +0000 (13:59 +0100)
i3status.conf
src/print_load.c

index 1e120cf6ac34b1b9a624e489c61c97df7ffb3add..774aa063a30dce22694c39e245ece0160ce39e02 100644 (file)
@@ -42,7 +42,7 @@ time {
 }
 
 load {
-       format = "%5min"
+       format = "%1min"
 }
 
 cpu_temperature 0 {
index c0d9494322a41e903cd3c6b5d342d03c835b7e7b..9fe1964c27d7bd5ad30ad7562021937cd586e7a3 100644 (file)
@@ -20,14 +20,14 @@ void print_load(const char *format) {
                         continue;
                 }
 
-                if (BEGINS_WITH(walk+1, "5min")) {
+                if (BEGINS_WITH(walk+1, "1min")) {
                         (void)printf("%1.2f", loadavg[0]);
-                        walk += strlen("5min");
+                        walk += strlen("1min");
                 }
 
-                if (BEGINS_WITH(walk+1, "10min")) {
+                if (BEGINS_WITH(walk+1, "5min")) {
                         (void)printf("%1.2f", loadavg[1]);
-                        walk += strlen("10min");
+                        walk += strlen("5min");
                 }
 
                 if (BEGINS_WITH(walk+1, "15min")) {