diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-14 18:47:14 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-14 18:47:14 +0000 |
commit | 9a71524e7ba5fb8052421e8628dbadf0010d5d3b (patch) | |
tree | 8d73b4d04101642ca9950441a64a7b8e590b5857 | |
parent | 3cd02bcf87c1f5c2b8b7d3dafed472109bf0b9db (diff) | |
download | drakx-net-9a71524e7ba5fb8052421e8628dbadf0010d5d3b.tar drakx-net-9a71524e7ba5fb8052421e8628dbadf0010d5d3b.tar.gz drakx-net-9a71524e7ba5fb8052421e8628dbadf0010d5d3b.tar.bz2 drakx-net-9a71524e7ba5fb8052421e8628dbadf0010d5d3b.tar.xz drakx-net-9a71524e7ba5fb8052421e8628dbadf0010d5d3b.zip |
indent
-rw-r--r-- | lib/network/monitor.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm index 972cf07..0639e6f 100644 --- a/lib/network/monitor.pm +++ b/lib/network/monitor.pm @@ -68,7 +68,7 @@ sub list_wireless { $qual =~ m!/! ? eval($qual)*100 : $qual; }; my ($has_key, $has_wpa); - foreach (@list) { + foreach (@list) { if ((/^\s*$/ || /Cell/) && exists $net->{ap}) { $net->{current} = to_bool($net->{ap} ? $net->{ap} eq $current_ap : $net->{essid} && $net->{essid} eq $current_essid); $net->{flags} = $has_wpa ? '[WPA]' : $has_key ? '[WEP]' : ''; @@ -84,7 +84,7 @@ sub list_wireless { 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; - } + } if ($current_ap && exists $networks{$current_ap}) { foreach (`/sbin/iwconfig $o_intf 2>/dev/null`) { my $quality = $_ =~ $quality_match && $eval_quality->($1); |