The load values represent 1,5,15 min, not 5,10,15 min (Thanks Chris)

This commit is contained in:
Michael Stapelberg 2009-12-13 13:59:59 +01:00
parent 58e0b05eb9
commit 9307ff9d13
2 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ time {
}
load {
format = "%5min"
format = "%1min"
}
cpu_temperature 0 {

View 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")) {