summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-14 13:15:41 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-14 13:15:41 +0000
commit718b28b0be82ede59299adbd8ce8e7e231b851ac (patch)
tree920525d7b18387917b19dc4b67783d8feaa0fa9b
parent043cc4b8d811b743b8ebf56c3e8345f3ecabbe77 (diff)
downloaddrakx-net-718b28b0be82ede59299adbd8ce8e7e231b851ac.tar
drakx-net-718b28b0be82ede59299adbd8ce8e7e231b851ac.tar.gz
drakx-net-718b28b0be82ede59299adbd8ce8e7e231b851ac.tar.bz2
drakx-net-718b28b0be82ede59299adbd8ce8e7e231b851ac.tar.xz
drakx-net-718b28b0be82ede59299adbd8ce8e7e231b851ac.zip
parse "Signal level=" as well (was only parsing "Signal level:")
-rw-r--r--lib/network/monitor.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm
index 84b944c..db34818 100644
--- a/lib/network/monitor.pm
+++ b/lib/network/monitor.pm
@@ -84,7 +84,7 @@ sub list_wireless {
/Mode:(\S*)/ and $net->{mode} = $1;
$net->{mode} = 'Managed' if $net->{mode} eq 'Master';
$_ =~ $quality_match and $net->{signal_strength} = $eval_quality->($1);
- m|Signal level:([0-9]+/[0-9]+)| && !$net->{signal_strength} and $net->{signal_strength} = eval($1)*100;
+ m|Signal level[:=]([0-9]+/[0-9]+)| && !$net->{signal_strength} and $net->{signal_strength} = eval($1)*100;
/key:(\S*)\s/ && $1 eq 'on' and $has_key = 1;
/Extra:wpa_ie=|IE:.*WPA/ and $has_wpa = 1;
/Authentication Suites \(\d+\) :.*\b802\.1x\b/ and $has_eap = 1;