summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_monitor
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-06-30 08:39:38 +0000
committerOlivier Blin <oblin@mandriva.org>2004-06-30 08:39:38 +0000
commit5ff3f8019166790b34c8e787c1f57b4c7d575dbc (patch)
tree6c5e84077e934d947835c4dd35151876ee66c0d8 /perl-install/standalone/net_monitor
parent6eee361b92003c5957d753d046a3a54461d57348 (diff)
downloaddrakx-5ff3f8019166790b34c8e787c1f57b4c7d575dbc.tar
drakx-5ff3f8019166790b34c8e787c1f57b4c7d575dbc.tar.gz
drakx-5ff3f8019166790b34c8e787c1f57b4c7d575dbc.tar.bz2
drakx-5ff3f8019166790b34c8e787c1f57b4c7d575dbc.tar.xz
drakx-5ff3f8019166790b34c8e787c1f57b4c7d575dbc.zip
always display a speed label for transmitted graph
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-xperl-install/standalone/net_monitor2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index 97965bcc1..875f0b95f 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -532,7 +532,7 @@ sub draw_monitor {
for (my $i = $grid_interval; $i <= $height - $grid_interval; $i += $grid_interval) {
$pixmap->draw_line($gcl, $left_border, $i, $width, $i);
my ($gc2, $text);
- if ($i > ($use_same_scale ? $pix_maxt : $height/2)) {
+ if ($i > max($grid_interval, $use_same_scale ? $pix_maxt : $height/2)) {
$text = formatXiB(($height-$i)/$echr);
$gc2 = $gcr;
} else {