Skip to content

Commit

Permalink
#41 Make parent process detection case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
b3rs3rk committed Dec 1, 2022
1 parent efb613f commit d86202a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpustat/usr/local/emhttp/plugins/gpustat/lib/Nvidia.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ private function detectApplication (SimpleXMLElement $process)
if (strpos($pid_info, '/app/intelligencelayer/shared') === false) {
continue 2;
}
} elseif (strpos($pid_info, $app) === false) {
} elseif (stripos($pid_info, $app) === false) {
// Try to match the app name in the parent process
$ppid_info = $this->getParentCommand((int) $process->pid);
if (strpos($ppid_info, $app) === false) {
if (stripos($ppid_info, $app) === false) {
// We didn't match the application name in the arguments, no match
continue 2;
}
Expand Down

0 comments on commit d86202a

Please sign in to comment.