mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: encodings and imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user