mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-25 17:50:16 -06:00
prevent too many newlines in output of --tc-statistics-from-ip
This commit is contained in:
parent
f580baafac
commit
ac79581c95
@ -95,7 +95,7 @@ def printStatsFromIP(ipAddress):
|
||||
commands = command.split(' ')
|
||||
proc = subprocess.Popen(commands, stdout=subprocess.PIPE)
|
||||
for line in io.TextIOWrapper(proc.stdout, encoding="utf-8"): # or another encoding
|
||||
print(line)
|
||||
print(line.replace('\n',''))
|
||||
else:
|
||||
print("Invalid IP address provided")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user