mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
Fix the Remote Backup Storage Issue
This commit is contained in:
2
containerization/views.py
Normal file → Executable file
2
containerization/views.py
Normal file → Executable file
@@ -288,6 +288,7 @@ def getUsageData(request):
|
||||
try:
|
||||
type = data['type']
|
||||
finalData = {}
|
||||
finalData['status'] = 1
|
||||
|
||||
try:
|
||||
if type == 'memory':
|
||||
@@ -336,6 +337,7 @@ def getUsageData(request):
|
||||
output = str(subprocess.check_output(command, shell=True))
|
||||
|
||||
finalData = {}
|
||||
finalData['status'] = 1
|
||||
if len(output) == 0:
|
||||
finalData['cpu'] = '0'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user