Commit 7d2c3307 authored by Daniele Venzano's avatar Daniele Venzano

Fix stats on users' home page

parent d86da83c
......@@ -94,8 +94,8 @@ class HomeWeb(ZoeWebRequestHandler):
last_running_executions += self.api_endpoint.execution_list(self.current_user, **filters)
running_reservations = [e.total_reservations for e in last_running_executions]
total_memory = sum([r.memory.max for r in running_reservations])
total_cores = sum([r.cores.max for r in running_reservations])
total_memory = sum([r.memory.min for r in running_reservations])
total_cores = sum([r.cores.min for r in running_reservations])
template_vars = {
"total_memory": total_memory,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment