summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-08-07 11:41:13 +0000
committerPaul Buetow <paul@buetow.org>2011-08-07 11:41:13 +0000
commit6833b5bcb7cc9cb57a6f15b3b0c872470aee01b6 (patch)
tree1fc011132544e52df396c6e100b3b1208de14bab
parent76174985aabe0fb868e15259ab6ea33035ec3182 (diff)
Fixed a bug in $barnum
-rwxr-xr-xloadbars.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/loadbars.pl b/loadbars.pl
index b0b0c17..82cc552 100755
--- a/loadbars.pl
+++ b/loadbars.pl
@@ -351,7 +351,7 @@ sub main_loop ($@) {
}
# Avoid division by null
- my $div = $num_stats - 1;
+ my $div = $num_stats;
my $width = $CONF{width} / ($div ? $div : 1);
my $barnum = -1;