diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-19 20:11:46 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-19 20:11:46 +0000 |
commit | 5b5df25227111ef465caf5c52bcfb66dac3219cd (patch) | |
tree | 31b713cac6188358125cbb66b8804030328740f0 /app-admin/conky/files/conky-1.10.7-cpu-hotplug.patch | |
parent | 02e2208f46f4e2c00fb9743cbc47350bdd233bfa (diff) |
gentoo resync : 19.01.2018
Diffstat (limited to 'app-admin/conky/files/conky-1.10.7-cpu-hotplug.patch')
-rw-r--r-- | app-admin/conky/files/conky-1.10.7-cpu-hotplug.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.10.7-cpu-hotplug.patch b/app-admin/conky/files/conky-1.10.7-cpu-hotplug.patch new file mode 100644 index 000000000000..18394828105c --- /dev/null +++ b/app-admin/conky/files/conky-1.10.7-cpu-hotplug.patch @@ -0,0 +1,13 @@ +diff -Naur conky-1.10.7_old/src/linux.cc conky-1.10.7/src/linux.cc +--- conky-1.10.7_old/src/linux.cc 2018-01-19 16:59:14.158830825 +0100 ++++ conky-1.10.7/src/linux.cc 2018-01-19 16:59:44.796144615 +0100 +@@ -923,6 +923,9 @@ + } else { + idx = 0; + } ++ if (idx > info.cpu_count) { ++ continue; ++ } + sscanf(buf, stat_template, &(cpu[idx].cpu_user), + &(cpu[idx].cpu_nice), &(cpu[idx].cpu_system), + &(cpu[idx].cpu_idle), &(cpu[idx].cpu_iowait), |