Commit 2f975ba4 authored by Committed by Jaromir Capik
tload: fix lockup
It looks like an off by one error was added to tload a couple years ago while removing goto statements. This causes tload to go into an endless loop when the load is just under a scale change integer. eg: .99, 1.99, 3.99, 7.99 to reproduce you can add, just under the loadavg at line 170 in tload.c: av = 1.99; or get the load to that level separately. The patch below makes the code more like the original, but without the goto statements. This can also be fixed by just changing line 183 in tload.c from "if (0 < row)" -> "if (0 <= row)".
Showing with 2 additions and 4 deletions