summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-13 09:28:32 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-13 09:28:32 +0000
commit2dc54aff64de5aebcddf9211099a454e3cc35d72 (patch)
tree248f44b5d7bea33bdd1bc97a78e6c634d8ab6375
parent70d11853899dcbc270c70172a0b4f5e9729996c4 (diff)
downloaddrakx-2dc54aff64de5aebcddf9211099a454e3cc35d72.tar
drakx-2dc54aff64de5aebcddf9211099a454e3cc35d72.tar.gz
drakx-2dc54aff64de5aebcddf9211099a454e3cc35d72.tar.bz2
drakx-2dc54aff64de5aebcddf9211099a454e3cc35d72.tar.xz
drakx-2dc54aff64de5aebcddf9211099a454e3cc35d72.zip
handle signal levels greater than 100
-rw-r--r--perl-install/standalone/net_applet2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 50c5acd69..6f425436a 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -164,7 +164,7 @@ sub checkWireless() {
}
$net->{ssid_label}->set_text($net->{ssid} || "[$_]");
$net->{keyring_image}->visible(defined $net->{flags});
- my $approx_level = 20 + int($net->{signal_level}/20)*20;
+ my $approx_level = 20 + int(min($net->{signal_level}, 80)/20)*20;
$net->{level_image}->set_from_pixbuf($pixbufs{link_level}{$approx_level});
}
$wireless_networks{$_}{menuitem}->visible(exists $networks->{$_}) foreach keys %wireless_networks;