summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbuetow (lap824) <puppet@mx.buetow.org>2012-01-21 16:06:56 +0100
committerpbuetow (lap824) <puppet@mx.buetow.org>2012-01-21 16:06:56 +0100
commit8fddb3fa956a6d39688a22d88627fc3cf6e9ee39 (patch)
tree530f6f358698055cce9961876e466541349d519a
parent3e5d0d2dd497fd39d6b8b6ada967ab3bbfe4b73d (diff)
fix norm
-rwxr-xr-xloadbars10
1 files 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,
);