That was weird because that was only a test for a certain process. That was never committed.. But however now that number doesn't exist. I re committed.

From: Ledio Ago <notifications@github.com<mailto:notifications@github.com>>
Reply-To: SplunkStorm/pydstat <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Thursday, January 24, 2013 1:59 PM
To: SplunkStorm/pydstat <pydstat@noreply.github.com<mailto:pydstat@noreply.github.com>>
Cc: Bekim Disha <bdisha@splunk.com<mailto:bdisha@splunk.com>>
Subject: Re: [pydstat] STORM-5775: Modification of "pydstat.py" in pydstat to calculate the percentage of process CPU usage (#1)


In pydstat/pydstat.py:

> @@ -81,7 +81,7 @@ def get_stats(self, pid='ALL'):
>          devnullw = open('/dev/null', 'w')
>
>          pidstat = shlex.split(
> -            ' '.join([self.pidstat, '-druh', '-p', str(pid)]))
> +            ' '.join([self.pidstat, '-druh', '-p', str(26503),'1','1']))
>


What's up with that static number "26503"?

—
Reply to this email directly or view it on GitHub<https://github.com/SplunkStorm/pydstat/pull/1/files#r2766401>.