diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-09-08 02:48:53 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-09-08 02:48:53 +0000 |
commit | f7fe4b4722129a8444b2f07d2ef1ce9d2500e613 (patch) | |
tree | 735412c0093433cb71aeef3d78008b422b9bce26 /AffinityPanel.c | |
parent | 4e72e790e338ea806237ce22a82bc96a48b1ee04 (diff) |
Fix off-by-one error in PROCESSOR display
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c index dcbc5d2f..b3ea4123 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -33,7 +33,7 @@ Panel* AffinityPanel_new(ProcessList* pl, unsigned long mask) { Panel_setHeader(this, "Use CPUs:"); for (int i = 0; i < pl->cpuCount; i++) { char number[10]; - snprintf(number, 9, "%d", ProcessList_cpuId(pl, i) + 1); + snprintf(number, 9, "%d", ProcessList_cpuId(pl, i)); Panel_add(this, (Object*) CheckItem_new(String_copy(number), NULL, mask & (1 << i))); } return this; |