screenlets-dev team mailing list archive
-
screenlets-dev team
-
Mailing list archive
-
Message #00192
[Bug 501155] [NEW] Sensors: net_get_activity (device); don't work when len(device) >= 4
Public bug reported:
You put constant when searching for activity of device witch name has
more than four characters.
Your code: data = data[data.find(device + ":") + 5:]
Repaired: data = data[data.find(device + ":") + len(device) + 1:]
or you can just put into first line: grep 'device'
** Affects: screenlets
Importance: Undecided
Status: New
--
Sensors: net_get_activity (device); don't work when len(device) >= 4
https://bugs.launchpad.net/bugs/501155
You received this bug notification because you are a member of
Screenlets Dev Team, which is subscribed to Screenlets.
Follow ups
References