diff options
author | Daniel Lange <DLange@git.local> | 2020-09-15 08:00:01 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-09-15 08:00:01 +0200 |
commit | 8e8165109aca4e3c2a8558653df088d674061c78 (patch) | |
tree | d68c91ced3a78c65be9ae262ea84676e73cac68d /AffinityPanel.c | |
parent | e9302ddfaeaad62b12bdd352958fb194a26f3c74 (diff) | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.tar.gz debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.tar.bz2 debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.zip |
Update upstream source from tag 'upstream/3.0.2'
Update to upstream version '3.0.2'
with Debian dir 26e1b8d7612e50e81b8325506c1ce54f71cba270
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c index 1ffa900..d0a9e6d 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -17,13 +17,6 @@ in the source distribution for its full text. #include <hwloc.h> #endif -/*{ -#include "Panel.h" -#include "Affinity.h" -#include "ProcessList.h" - -}*/ - typedef struct MaskItem_ { Object super; const char* text; @@ -375,9 +368,9 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity, int* width) { for (int i = 0; i < pl->cpuCount; i++) { char number[16]; xSnprintf(number, 9, "CPU %d", Settings_cpuId(pl->settings, i)); - unsigned width = 4 + strlen(number); - if (width > this->width) - this->width = width; + unsigned cpu_width = 4 + strlen(number); + if (cpu_width > this->width) + this->width = cpu_width; bool isSet = false; if (curCpu < affinity->used && affinity->cpus[curCpu] == i) { |