Commit ba55b1ba authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[stats] Fix key search in dictionary

parent 3a0302fd
......@@ -233,7 +233,7 @@ def cpu_statistics(start, end):
"""
if not end.has_key('system_cpu_usage'):
if 'system_cpu_usage' not in end:
return {
'user': 0.0,
'system': 0.0,
......
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