Changed args to find process information by id

This commit is contained in:
Mark McDowall 2014-02-13 08:12:14 -08:00
parent a13d187473
commit c0fb53c7f6
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Mono
return monoProcesses.Where(c =>
{
var processArgs = _processProvider.StartAndCapture("ps", String.Format("--pid {0} -o args=", c.Id));
var processArgs = _processProvider.StartAndCapture("ps", String.Format("-p {0} -o args=", c.Id));
return processArgs.Standard.Any(p => p.Contains(ProcessProvider.NZB_DRONE_PROCESS_NAME + ".exe") ||
p.Contains(ProcessProvider.NZB_DRONE_CONSOLE_PROCESS_NAME + ".exe"));