summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_applet
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/net_applet')
-rw-r--r--perl-install/standalone/net_applet3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 39c7bd80e..087a121c5 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -171,8 +171,7 @@ sub update_wireless_item {
my ($net, $ap_address) = @_;
$net->{ssid_label}->set_text($net->{ssid} || "[$ap_address]");
$net->{keyring_image}->visible(defined $net->{flags});
- my $approx_level = 20 + int(min($net->{signal_level}, 80)/20)*20;
- $net->{level_image}->set_from_pixbuf($pixbufs{link_level}{$approx_level});
+ $net->{level_image}->set_from_pixbuf($pixbufs{link_level}{$net->{approx_level}});
$net->{menuitem}->signal_handler_block($net->{activate});
$net->{menuitem}->set_active($net->{current});