diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-07 10:34:16 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-07 10:34:16 +0000 |
| commit | 76ffc1c25f8503ed98021a28bce9bce6686d5da0 (patch) | |
| tree | 106f30d7e4b8b7fa48ba6bbf21e96d81167c1053 | |
| parent | 3de2059bbab3ffcf8928a402543714470f21765a (diff) | |
small bugfix
| -rwxr-xr-x | cpuload.pl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -124,7 +124,10 @@ sub graph_stats ($$) { my %last_loads; loop { - my $width = WIDTH / (keys %STATS) - 1; + my $width = do { + sleep 1 until %STATS; + WIDTH / (keys %STATS) - 1 + }; my ($x, $y) = (0, 0); for my $key (sort keys %STATS) { |
