summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-16 14:59:10 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-16 14:59:10 +0000
commit74585376d80b76caaa5aa373be7b310c65cb00bd (patch)
tree45889e775bed3c5d8bfe1a77f9c058f2ee6edde5 /lib
parent819791c32375498735b6d2566439d9f6814c3076 (diff)
downloaddrakx-net-74585376d80b76caaa5aa373be7b310c65cb00bd.tar
drakx-net-74585376d80b76caaa5aa373be7b310c65cb00bd.tar.gz
drakx-net-74585376d80b76caaa5aa373be7b310c65cb00bd.tar.bz2
drakx-net-74585376d80b76caaa5aa373be7b310c65cb00bd.tar.xz
drakx-net-74585376d80b76caaa5aa373be7b310c65cb00bd.zip
(create_networks_list) only display 2 digits after comma for signal
strengh (#53685)
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection_manager.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index d12aae7..4f30db0 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -287,7 +287,7 @@ sub create_networks_list {
(undef, undef, my $model, my $path, my $iter) = $widget->get_tooltip_context($x, $y, $kbd_tip) or return;
my $ap = $model->get($iter, 0);
my $network = $cmanager->{connection}{networks}{$ap};
- $tooltip->set_text("$network->{signal_strength}% $network->{flags}");
+ $tooltip->set_text(sprintf("%2.2f%% %s\n", $network->{signal_strength}, $network->{flags}));
$widget->set_tooltip_row($tooltip, $path);
1;
});