From 799a9c65ac87b49eee41eb2100f56eeea355518b Mon Sep 17 00:00:00 2001 From: "pbuetow (lap824)" Date: Sat, 21 Jan 2012 18:24:33 +0100 Subject: fix core number bug --- loadbars | 4 ++-- 1 file 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); } -- cgit v1.2.3