From 8fddb3fa956a6d39688a22d88627fc3cf6e9ee39 Mon Sep 17 00:00:00 2001 From: "pbuetow (lap824)" Date: Sat, 21 Jan 2012 16:06:56 +0100 Subject: fix norm --- loadbars | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/loadbars b/loadbars index 59e1d7c..637eeae 100755 --- a/loadbars +++ b/loadbars @@ -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, ); -- cgit v1.2.3