(numGpus)
| 329 | } |
| 330 | |
| 331 | resetHistory(numGpus) { |
| 332 | // don't call this._history = {}, as we want to keep network-rx and network-tx |
| 333 | // otherwise network history statistics will start over |
| 334 | for (let sensor in this._sensorIcons) { |
| 335 | //each gpu has it's own sensor name and thus must be handled separately |
| 336 | if(sensor === 'gpu') continue; |
| 337 | |
| 338 | this._history[sensor] = {}; |
| 339 | this._history[sensor + '-group'] = {}; |
| 340 | //this._history2[sensor] = {}; |
| 341 | //this._history2[sensor + '-group'] = {}; |
| 342 | } |
| 343 | |
| 344 | for(let i = 1; i <= numGpus; i++){ |
| 345 | this._history['gpu#' + i] = {}; |
| 346 | this._history['gpu#' + i + '-group'] = {}; |
| 347 | } |
| 348 | } |
| 349 | }); |
no outgoing calls
no test coverage detected