Skip to content

Commit

Permalink
Nits picked.
Browse files Browse the repository at this point in the history
  • Loading branch information
cory-stripe committed Dec 22, 2015
1 parent feaa9fd commit 6ba6645
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion checks.d/linux_proc_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from checks import AgentCheck
from utils.subprocess_output import get_subprocess_output
from collections import Counter
import subprocess

PROCESS_STATES = {
'D': 'uninterruptible',
Expand Down
11 changes: 5 additions & 6 deletions checks/system/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,12 @@ def check(self, agentConfig):
processes = []

for line in processLines:
l = line.split(None, 10)
processes.append(map(lambda s: s.strip(), l))
line = line.split(None, 10)
processes.append(map(lambda s: s.strip(), line))


return {'processes': processes,
'apiKey': agentConfig['api_key'],
'host': get_hostname(agentConfig)}
return {'processes': processes,
'apiKey': agentConfig['api_key'],
'host': get_hostname(agentConfig)}


class Cpu(Check):
Expand Down

0 comments on commit 6ba6645

Please sign in to comment.