Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
ba55b1ba
Commit
ba55b1ba
authored
Apr 20, 2018
by
Samuel GAIST
Browse files
[stats] Fix key search in dictionary
parent
3a0302fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/stats.py
View file @
ba55b1ba
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment