Skip to content
Snippets Groups Projects
Commit f6a253a7 authored by Philip ABBET's avatar Philip ABBET
Browse files

More fixes for statistics

parent b6fcb1fb
No related branches found
No related tags found
No related merge requests found
......@@ -280,6 +280,15 @@ def cpu_statistics(start, end):
"""
if not end.has_key('system_cpu_usage'):
return {
'user': 0.0,
'system': 0.0,
'total': 0.0,
'percent': 0.0,
'processors': 1,
}
if start is not None:
user_cpu = end['cpu_usage']['total_usage'] - \
start['cpu_usage']['total_usage']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment