mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated nvidia poller app: handle slightly changed nvidia-smi output formatting properly (#16158)
This commit is contained in:
@@ -33,7 +33,7 @@ $metrics = [];
|
||||
foreach ($gpuArray as $index => $gpu) {
|
||||
$stats = explode(',', $gpu);
|
||||
$stats_count = count($stats);
|
||||
if ($stats_count == 22) {
|
||||
if ($stats_count == 22 || $stats_count == 23) {
|
||||
[$gpu, $pwr, $temp, $memtemp, $sm, $mem, $enc, $dec, $jpg, $ofa,
|
||||
$mclk, $pclk, $pviol, $tviol, $fb, $bar1, $ccpm, $sbecc, $dbecc,
|
||||
$pci, $rxpci, $txpci] = $stats;
|
||||
|
Reference in New Issue
Block a user