Skip to content
Snippets Groups Projects
Commit 80681ad4 authored by Ricardo Rocha's avatar Ricardo Rocha
Browse files

Fixed #540: check_process performance data fails if daemon has a '.'

parent 2ea0025d
No related branches found
No related tags found
No related merge requests found
......@@ -52,13 +52,14 @@ class process:
"""
String representation for performance
"""
procname = str.replace(self.comm, '.', '-')
return "'%s instances'=%d '%s cpu'=%.2f%% '%s mem'=%.2f%% '%s thr'=%d '%s conn'=%d '%s fd'=%d" % \
(self.comm, len(self.pid),
self.comm, self.cpu,
self.comm, self.mem,
self.comm, self.thr,
self.comm, self.conn,
self.comm, self.fd)
(procname, len(self.pid),
procname, self.cpu,
procname, self.mem,
procname, self.thr,
procname, self.conn,
procname, self.fd)
class check_process:
"Checks a process activity"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment