summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbuetow (lap824) <puppet@mx.buetow.org>2012-01-21 18:24:33 +0100
committerpbuetow (lap824) <puppet@mx.buetow.org>2012-01-21 18:24:33 +0100
commit799a9c65ac87b49eee41eb2100f56eeea355518b (patch)
treeea4a7d65129d665eb50fc5dbc36b07a3be9ea3b8
parent70b755dd0bb146d8ee143ff1c22fe9c2562dc9f4 (diff)
fix core number bug
-rwxr-xr-xloadbars4
1 files changed, 2 insertions, 2 deletions
diff --git a/loadbars b/loadbars
index 145c8af..246a7d4 100755
--- a/loadbars
+++ b/loadbars
@@ -405,7 +405,7 @@ sub main_loop ($@) {
my $rect_peak;
- unless ($is_host_summary || $C{showcores}) {
+ unless ($is_host_summary || !$C{showcores}) {
$current_corenum = 0;
$rect_separator = get_rect $rects, "$key;separator";
$rect_separator->width(1);
@@ -517,7 +517,7 @@ sub main_loop ($@) {
} else {
$app->print($x, $y, sprintf '%i:',
- $C{showcores} ? $current_barnum + 1: $current_corenum);
+ $C{showcores} ? $current_corenum : $current_barnum + 1);
}