@cryptotaxi247 / netdata-1 / commits / 0e3e0b274

cpufreq plugin: cpu ordering in chart fixed

Ilya committed Jun 22, 2017 at 22:54 UTC 0e3e0b27400dea365b6e065b709ec47ce41a2b72
1 file changed +1 -1
python.d/cpufreq.chart.py
+1 -1
@@ -100,7 +100,7 @@ class Service(SimpleService):
100 self.error("couldn't find a method to read cpufreq statistics")
101 return False
102
103 - for name in self.assignment.keys():
103 + for name in sorted(self.assignment, key=lambda v: int(v[3:])):
104 self.definitions[ORDER[0]]['lines'].append([name, name, 'absolute', 1, 1000])
105
106 return True