summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
);