|
|
|
@ -103,10 +103,10 @@ class apps(analytics) :
|
|
|
|
|
q = []
|
|
|
|
|
for row in slogs :
|
|
|
|
|
|
|
|
|
|
r.append( {"x":[row['crash'],row['idle'],row['running']],"labels":['Crash','Idle','Running'],"title":row['node'],"date":row['date']})
|
|
|
|
|
r.append( {"x":[row['crash'],row['idle'],row['running']],"labels":['Crash','Idle','Running'],"title":"","date":row['date']})
|
|
|
|
|
# q.append({"x":[[row['cpu'],row['mem']]],"labels":["CPU","RAM"],"title":"Resources","date":row['date'],"title":row['node'],"series":[ 'CPU','RAM' ]})
|
|
|
|
|
|
|
|
|
|
q.append({"x":[[row['cpu'],0],[0,row['mem']]],"labels":["",""],"title":"","date":row['date'],"title":row['node'],"series":[ 'CPU','RAM' ],"ylabel":"% Resource Used"})
|
|
|
|
|
q.append({"x":[[row['cpu'],0],[0,row['mem']]],"labels":["",""],"date":row['date'],"title":"","series":[ 'CPU','RAM' ],"ylabel":"% Resource Used"})
|
|
|
|
|
|
|
|
|
|
self.set('status',r)
|
|
|
|
|
self.set('resource',q)
|
|
|
|
@ -140,7 +140,7 @@ class folders(analytics):
|
|
|
|
|
else:
|
|
|
|
|
max_size = 0
|
|
|
|
|
self.set('max_size',max_size)
|
|
|
|
|
for id in logs :
|
|
|
|
|
for id in logs :
|
|
|
|
|
|
|
|
|
|
row = pd.DataFrame(logs[id]['log'])
|
|
|
|
|
size = row.size_in_kb.mean() * .001
|
|
|
|
|