Fixed: Cleanup of escaped characters in process argument string

pull/165/head
aristocratos 2020-10-25 01:25:27 +02:00
parent d9ee18b5a9
commit 94538bfd72
1 changed files with 2 additions and 2 deletions

View File

@ -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,