xtranophilist/gnome-shell-extension-cpu-temperature — Issue #15: Use g_timeout_add_seconds
Author: nalimilan
Created: 2011-11-28 17:47:21+00:00
State: open

The refresh timeout is set as follows:
GLib.timeout_add(0, 15000, Lang.bind(this, function () {
this._update_temp();
return true;
}));

It would be better to use
GLib.timeout_add_seconds(0, 15, Lang.bind(this, function () {
this._update_temp();
return true;
}));

It would avoid waking the CPU at wrong times, and save power. See the explanation at http://developer.gnome.org/glib/2.28/glib-The-Main-Event-Loop.html#g-timeout-add-seconds-full