Bug #236
Wifi sublet - unhandled condition
Start date:
07/18/2011
Due date:
% Done:
0%
Estimated time:
0.00 h
Description
Hi,
just a small bug in wifi.rb on line 36 causes script to abort with unhandled exception when link variable is not initialized.
Either fix the mentioned lines.data = '%s%s (%d/100)' % [ s.icon, essid.strip, link ]
with something like
s.data = '%s%s (%d/100)' % [ s.icon, essid.strip, link.nil? ? 0 : link ]
or directly handle fail case of '/proc/net/wireless' file parsing on line 19:
link, level, noise = wireless.scan(/#{s.device}:s*d*s*([0-9-]+).s+([0-9-]+).s+([0-9-]+)/).flatten
History
#1 Updated by Christoph Kappel over 13 years ago
- Target version set to Nu
- Assignee set to Non member users
- Status changed from Unconfirmed to Confirmed
- Category set to Bugfix
What is in /proc/net/wireless when the link level is empty?
#2 Updated by Christoph Kappel over 13 years ago
- Status changed from Confirmed to Fixed
Fixed in wifi-0.7.