From: Michael Stapelberg Date: Sun, 13 Dec 2009 12:59:59 +0000 (+0100) Subject: The load values represent 1,5,15 min, not 5,10,15 min (Thanks Chris) X-Git-Tag: 2.1~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9307ff9d131a70164a50e57e3aa3115c92715925;p=i3%2Fi3status The load values represent 1,5,15 min, not 5,10,15 min (Thanks Chris) --- diff --git a/i3status.conf b/i3status.conf index 1e120cf..774aa06 100644 --- a/i3status.conf +++ b/i3status.conf @@ -42,7 +42,7 @@ time { } load { - format = "%5min" + format = "%1min" } cpu_temperature 0 { diff --git a/src/print_load.c b/src/print_load.c index c0d9494..9fe1964 100644 --- a/src/print_load.c +++ b/src/print_load.c @@ -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")) {