MCPcopy Create free account
hub / github.com/corecoding/Vitals / _initializeTimer

Method _initializeTimer

extension.js:496–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

494 }
495
496 _initializeTimer() {
497 // used to query sensors and update display
498 let update_time = this._settings.get_int('update-time');
499 this._refreshTimeoutId = GLib.timeout_add_seconds(
500 GLib.PRIORITY_DEFAULT,
501 update_time,
502 (self) => {
503 // always query sensors (for panel display when hot)
504 this._querySensors();
505 return GLib.SOURCE_CONTINUE;
506 }
507 );
508 }
509
510 _createHotItem(key, value, gicon) {
511 let item = new St.BoxLayout({

Callers 3

_initMethod · 0.95
_updateTimeChangedMethod · 0.95

Calls 1

_querySensorsMethod · 0.95

Tested by

no test coverage detected