Fixed: Cleanup of escaped characters in process argument string

pull/165/head
aristocratos 4 years ago
parent d9ee18b5a9
commit 94538bfd72

@ -3278,7 +3278,7 @@ class ProcCollector(Collector):
out[p.info["pid"]] = {
"name" : p.info["name"],
"cmd" : cmd,
"cmd" : cmd.replace("\n", "").replace("\t", "").replace("\\", ""),
"threads" : p.info["num_threads"],
"username" : p.info["username"],
"mem" : mem,
@ -3460,7 +3460,7 @@ class ProcCollector(Collector):
out[pid] = {
"indent" : inindent,
"name": name,
"cmd" : cmd,
"cmd" : cmd.replace("\n", "").replace("\t", "").replace("\\", ""),
"threads" : threads,
"username" : username,
"mem" : mem,

Loading…
Cancel
Save