Skip to content

Commit

Permalink
Strip process data
Browse files Browse the repository at this point in the history
  • Loading branch information
vfuse committed Feb 1, 2018
1 parent 265ec99 commit 0a1de16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixstatsagent/nixstatsagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import urllib2


__version__ = '1.1.36'
__version__ = '1.1.37'

__FILEABSDIRNAME__ = os.path.dirname(os.path.abspath(__file__))

Expand Down
2 changes: 1 addition & 1 deletion nixstatsagent/plugins/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def run(self, *unused):
])
pinfo['name'].encode('utf-8')
pinfo['username'].encode('utf-8')
pinfo['cmdline'] = ''.join(pinfo['cmdline']).encode('utf-8')
pinfo['cmdline'] = ' '.join(pinfo['cmdline']).encode('utf-8').strip()
except psutil.NoSuchProcess:
pass
except psutil.AccessDenied:
Expand Down

0 comments on commit 0a1de16

Please sign in to comment.