From ae3119fcbad12751dd1fee051dd965a6893e79df Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 4 Feb 2012 23:32:42 +0100 Subject: fix showcores option --- loadbars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loadbars b/loadbars index 1312968..c33d016 100755 --- a/loadbars +++ b/loadbars @@ -83,7 +83,7 @@ my %I : shared; ); %I = ( - cpuregexp => 'cpu ', + cpuregexp => 'cpu', showtextoff => 0, ); @@ -94,7 +94,7 @@ sub debugsay (@) { say "Loadbars::DEBUG: $_" for @_; return undef } sub sum (@) { my $sum = 0; $sum += $_ for @_; return $sum } sub null ($) { defined $_[0] ? $_[0] : 0 } sub notnull ($) { $_[0] != 0 ? $_[0] : 1 } -sub set_showcores_regexp () { $I{cpuregexp} = $I{showcores} ? 'cpu' : 'cpu ' } +sub set_showcores_regexp () { $I{cpuregexp} = $C{showcores} ? 'cpu' : 'cpu ' } sub error ($) { die shift, "\n" } sub display_info ($) { say "==> " . shift } sub display_warn ($) { say "!!! " . shift } -- cgit v1.2.3