diff options
| author | pbuetow (lap824) <puppet@mx.buetow.org> | 2012-01-21 16:06:56 +0100 |
|---|---|---|
| committer | pbuetow (lap824) <puppet@mx.buetow.org> | 2012-01-21 16:06:56 +0100 |
| commit | 8fddb3fa956a6d39688a22d88627fc3cf6e9ee39 (patch) | |
| tree | 530f6f358698055cce9961876e466541349d519a | |
| parent | 3e5d0d2dd497fd39d6b8b6ada967ab3bbfe4b73d (diff) | |
fix norm
| -rwxr-xr-x | loadbars | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -87,7 +87,7 @@ sub error ($) { die shift, "\n" } sub norm ($) { my $n = shift; - return $n if $C{factor} != 0; + return $n if $C{factor} != 1; return $n > 100 ? 100 : ($n < 0 ? 0 : $n); } @@ -544,12 +544,12 @@ sub main_loop ($@) { } $app->update( - $rect_nice, - $rect_steal, + $rect_idle, + $rect_iowait, $rect_irq, + $rect_nice, $rect_softirq, - $rect_iowait, - $rect_idle, + $rect_steal, $rect_system, $rect_user, ); |
