MCPcopy Index your code
hub / github.com/corecoding/Vitals / resetHistory

Method resetHistory

values.js:331–348  ·  view source on GitHub ↗
(numGpus)

Source from the content-addressed store, hash-verified

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});

Callers 5

_initMethod · 0.95
_initializeMenuMethod · 0.45
_redrawMenuMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected