Skip to content

Commit

Permalink
Update fix declaration of checkboxes for monitors
Browse files Browse the repository at this point in the history
Update fix loading parsing
  • Loading branch information
konkor committed Jan 8, 2019
1 parent 7383701 commit f43436a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpufreq-service
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ var CpufreqService = new Lang.Class ({
if (!success) return;
try {
contents = Convenience.byteArrayToString (contents).toString ().split ("\n")[0].split (" ")[0].trim ();
loading = Math.round (parseFloat (freqInfo[0]) * 100);
loading = Math.round (parseFloat (contents) * 100);
} catch (e) {}
});
},
Expand Down
2 changes: 1 addition & 1 deletion prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ var PageGeneralCPUFreq = new Lang.Class({
this.pack_start (hbox, false, false, 0);
hbox.pack_start (new Gtk.Label ({label: _("Show"), xalign:0.0}), false, false, 0);

cb_units = Gtk.CheckButton.new_with_label (_("Frequency"));
let cb_units = Gtk.CheckButton.new_with_label (_("Frequency"));
cb_units.tooltip_text = _("Monitor frequency");
cb_units.margin_left = 32;
cb_units.active = frequency_show;
Expand Down

0 comments on commit f43436a

Please sign in to comment.