Skip to content

Commit

Permalink
Need str instead of bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter L. Allen <hunter.allen@ghostrobotics.io>
  • Loading branch information
allenh1 committed Jun 27, 2020
1 parent 395278d commit e0fbcc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions procreader/reader.py
Expand Up @@ -191,8 +191,8 @@ def __init__(self, timerValue, historyCount, prefixDir = ""):
ethtoolerror = True

if data[0] is not None:
for line in data[0].split(b"\n"):
if line.find(b"Speed") != -1:
for line in data[0].split("\n"):
if line.find("Speed") != -1:
try:
speed = int(line.split(":")[1].split("Mb/s")[0])
except:
Expand Down

0 comments on commit e0fbcc2

Please sign in to comment.