diff options
author | Ilya <ilyamaschenko@gmail.com> | 2017-06-22 22:54:57 +0900 |
---|---|---|
committer | Ilya <ilyamaschenko@gmail.com> | 2017-06-22 22:54:57 +0900 |
commit | 0e3e0b27400dea365b6e065b709ec47ce41a2b72 (patch) | |
tree | b365010b2f70d12b815fd74bae8c5f144dcb7c16 /python.d | |
parent | c81bbe98c195875399d7b411abb7c0045f66414a (diff) |
cpufreq plugin: cpu ordering in chart fixed
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/cpufreq.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/cpufreq.chart.py b/python.d/cpufreq.chart.py index e28bdea8f6..d5544b7ba3 100644 --- a/python.d/cpufreq.chart.py +++ b/python.d/cpufreq.chart.py @@ -100,7 +100,7 @@ class Service(SimpleService): self.error("couldn't find a method to read cpufreq statistics") return False - for name in self.assignment.keys(): + for name in sorted(self.assignment, key=lambda v: int(v[3:])): self.definitions[ORDER[0]]['lines'].append([name, name, 'absolute', 1, 1000]) return True |