diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/monitor.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm index 5ae0f4a..151d6cb 100644 --- a/lib/network/monitor.pm +++ b/lib/network/monitor.pm @@ -64,6 +64,7 @@ sub list_wireless { my $quality_match = qr/Quality[:=](\S*)/; my $eval_quality = sub { my ($qual) = @_; + $qual =~ s!/0+$!/255!; #- prism54 reports quality with division by zero $qual =~ m!/! ? eval($qual)*100 : $qual; }; foreach (@list) { |