summaryrefslogtreecommitdiff
path: root/loadbars.pl
diff options
context:
space:
mode:
Diffstat (limited to 'loadbars.pl')
-rwxr-xr-xloadbars.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/loadbars.pl b/loadbars.pl
index 9748209..ba2e1ff 100755
--- a/loadbars.pl
+++ b/loadbars.pl
@@ -313,7 +313,6 @@ sub graph_stats ($) {
} elsif ($MSG == MSG_TOGGLE_SUMMARY) {
$display_summary = $CONF{togglesummary};
- say "$display_summary = $CONF{togglesummary};";
}
$recv_msg = 1;
@@ -337,7 +336,8 @@ sub graph_stats ($) {
}
if ($display_summary) {
- $width = $CONF{width} / ($num_stats -1) - 1;
+ my $div = $width = $num_stats -1;
+ $width = $CONF{width} / ($div ? $div : 1) - 1;
my %summary;
my $count = 0;