43,13 → 43,12 |
$this->_gpus = preg_split("/^(?=GPU )/m", $lines, -1, PREG_SPLIT_NO_EMPTY); |
break; |
case 'data': |
if (CommonFunctions::rfts(PSI_APP_ROOT.'/data/nvidiasmi.txt', $lines)) { |
if (CommonFunctions::rftsdata('nvidiasmi.tmp', $lines)) { |
$this->_gpus = preg_split("/^(?=GPU )/m", $lines, -1, PREG_SPLIT_NO_EMPTY); |
} |
break; |
default: |
$this->error->addConfigError('__construct()', '[sensor_nvidiasmi] ACCESS'); |
break; |
} |
} |
|
58,7 → 57,7 |
* |
* @see PSI_Interface_Sensor::build() |
* |
* @return Void |
* @return void |
*/ |
public function build() |
{ |
132,7 → 131,6 |
$this->mbinfo->setMbOther($dev); |
} |
} |
break; |
} |
} |
} |