Commit f6a253a7 authored by Philip ABBET's avatar Philip ABBET

More fixes for statistics

parent b6fcb1fb
......@@ -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']
......
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