Skip to content

Commit

Permalink
*ADD support for other architectures;
Browse files Browse the repository at this point in the history
  • Loading branch information
konkor committed Apr 23, 2017
1 parent 0fb4c03 commit dcadcf6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ const FrequencyIndicator = new Lang.Class({
freqInfo = null;
cpufreq_output = GLib.spawn_command_line_sync (EXTENSIONDIR + "/cpufreqctl driver");
if (cpufreq_output[0]) freqInfo = cpufreq_output[1].toString().split("\n")[0];
if (freqInfo) {
if (freqInfo && GLib.file_test ("/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver", GLib.FileTest.EXISTS)) {
this.util_present = true;
if (freqInfo == 'intel_pstate') {
this.util_present = true;
this.pstate_present = true;
} else if (freqInfo == 'acpi-cpufreq') {
this.util_present = true;
}
}

Expand Down

0 comments on commit dcadcf6

Please sign in to comment.