summaryrefslogtreecommitdiff
path: root/src/print_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_load.c')
-rw-r--r--src/print_load.c8
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")) {