bug fix: encodings and imports

This commit is contained in:
Usman Nasir
2019-12-15 13:30:40 +05:00
parent 6feb799638
commit 23b55a5f97
34 changed files with 95 additions and 106 deletions

View File

@@ -333,7 +333,7 @@ def getUsageData(request):
finalData['writeRate'] = 0
except:
command = "top -b -n 1 -u " + website.externalApp + " | awk 'NR>7 { sum += $9; } END { print sum; }'"
output = str(subprocess.check_output(command, shell=True))
output = str(subprocess.check_output(command, shell=True).decode("utf-8"))
finalData = {}
finalData['status'] = 1