diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-12-13 13:59:59 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-12-13 13:59:59 +0100 |
commit | 9307ff9d131a70164a50e57e3aa3115c92715925 (patch) | |
tree | 4c93ccd7a4b3e74faf07dc53fc4cded644fe7add /src/print_load.c | |
parent | 58e0b05eb95afc6c67fd44ef8691ff8812a7c40a (diff) |
The load values represent 1,5,15 min, not 5,10,15 min (Thanks Chris)
Diffstat (limited to 'src/print_load.c')
-rw-r--r-- | src/print_load.c | 8 |
1 files changed, 4 insertions, 4 deletions
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")) { |