diff options
| author | Paul Buetow <paul@buetow.org> | 2011-08-07 12:08:48 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-08-07 12:08:48 +0000 |
| commit | 5ea0b3af5779a09ebd42e5ff0594128f89b3774d (patch) | |
| tree | 9e5464df17b09e079ddf2e411b2a43dc8a7e241a | |
| parent | 76174985aabe0fb868e15259ab6ea33035ec3182 (diff) | |
tagged v0.2.0.1
| -rw-r--r-- | CHANGELOG | 3 | ||||
| -rwxr-xr-x | loadbars.pl | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,6 @@ +So 7. Aug 14:06:45 CEST 2011 +* Released v0.2.0.1 (Bugfixes only) + Sa 6. Aug 22:04:15 CEST 2011 * Released v0.2.0 (new major version) * No interactive CLI shell anymore but instead hotkeys for the diff --git a/loadbars.pl b/loadbars.pl index b0b0c17..5e06bb6 100755 --- a/loadbars.pl +++ b/loadbars.pl @@ -49,7 +49,7 @@ use threads::shared; use constant { DEPTH => 8, - VERSION => 'loadbars v0.2.1-devel', + VERSION => 'loadbars v0.2.0.1', COPYRIGHT => '2010-2011 (c) Paul Buetow <loadbars@mx.buetow.org>', BLACK => SDL::Color->new(-r => 0x00, -g => 0x00, -b => 0x00), BLUE => SDL::Color->new(-r => 0x00, -g => 0x00, -b => 0xff), @@ -342,6 +342,7 @@ sub main_loop ($@) { my %is_host_summary; my $new_num_stats = keys %CPUSTATS; + if ($new_num_stats != $num_stats) { %prev_stats = (); %last_loads = (); @@ -351,8 +352,7 @@ sub main_loop ($@) { } # Avoid division by null - my $div = $num_stats - 1; - my $width = $CONF{width} / ($div ? $div : 1); + my $width = $CONF{width} / ($num_stats ? $num_stats : 1); my $barnum = -1; for my $key (sort keys %CPUSTATS) { |
