mirror of
https://github.com/gryf/wicd.git
synced 2026-02-26 04:05:51 +01:00
update FormatSignalForPrinting to return ??% instead of 101%
This commit is contained in:
@@ -309,7 +309,13 @@ class WicdDaemon(dbus.service.Object):
|
|||||||
if self.GetSignalDisplayType() == 1:
|
if self.GetSignalDisplayType() == 1:
|
||||||
return (signal + " dBm")
|
return (signal + " dBm")
|
||||||
else:
|
else:
|
||||||
return (signal + "%")
|
try:
|
||||||
|
if int(signal) == 101:
|
||||||
|
return '??%'
|
||||||
|
else:
|
||||||
|
return (signal + "%")
|
||||||
|
except ValueError:
|
||||||
|
return (signal + "%")
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon')
|
@dbus.service.method('org.wicd.daemon')
|
||||||
def SetSuspend(self, val):
|
def SetSuspend(self, val):
|
||||||
|
|||||||
Reference in New Issue
Block a user