diff options
author | Que Quotion | 2017-12-14 21:12:59 +0900 |
---|---|---|
committer | Que Quotion | 2017-12-14 21:12:59 +0900 |
commit | 1267f7af8057ed94d40fc0b0a059f548a88b476e (patch) | |
tree | 381208953350aef1c8b60dec92c8d3bb5a1d405c /indicator.py.patch | |
parent | e48e122ec4c327a0b08a558bcd6a3d1ebb3f807a (diff) | |
download | aur-1267f7af8057ed94d40fc0b0a059f548a88b476e.tar.gz |
Use cpuinfo min/max for more relative icon display
Diffstat (limited to 'indicator.py.patch')
-rw-r--r-- | indicator.py.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indicator.py.patch b/indicator.py.patch index a11151568c82..bdc27a50b250 100644 --- a/indicator.py.patch +++ b/indicator.py.patch @@ -154,9 +154,9 @@ - fmin, fmax, governor = cpufreq.get_policy(self.cpus[0]) + govFile = open("/sys/devices/system/cpu/cpufreq/policy0/scaling_governor", 'r') + governor = govFile.readline().strip("\n") -+ fmnFile = open("/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq", 'r') ++ fmnFile = open("/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq", 'r') + fmin = int(fmnFile.readline().strip("\n")) -+ fmxFile = open("/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq", 'r') ++ fmxFile = open("/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq", 'r') + fmax = int(fmxFile.readline().strip("\n")) # use the highest freq among cores for display - freq = max([cpufreq.get_freq_kernel(cpu) for cpu in self.cpus]) |