Skip to content

Commit

Permalink
Update monitoring_prometheus/models/psutils_helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Fayolle <[email protected]>
  • Loading branch information
vrenaville and gurneyalex authored Aug 2, 2024
1 parent 1e1cec7 commit ce94800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitoring_prometheus/models/psutils_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_process_info():
ProcessLabel = "workercron"
elif process.info["pid"] == 1:
ProcessLabel = "dispatcher"
elif any(["gevent" in x for x in process.info["cmdline"]]):
elif any("gevent" in x for x in process.info["cmdline"]):
ProcessLabel = "gevent"
elif any(["odoo" in x for x in process.info["cmdline"]]):
ProcessLabel = "workerhttp"
Expand Down

0 comments on commit ce94800

Please sign in to comment.