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 /CPUMeter.c | |
parent | 4e72e790e338ea806237ce22a82bc96a48b1ee04 (diff) |
Fix off-by-one error in PROCESSOR display
Diffstat (limited to 'CPUMeter.c')
-rw-r--r-- | CPUMeter.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ static void CPUMeter_init(Meter* this) { int cpu = this->param; if (this->pl->cpuCount > 1) { char caption[10]; - sprintf(caption, "%-3d", ProcessList_cpuId(this->pl, cpu)); + sprintf(caption, "%-3d", ProcessList_cpuId(this->pl, cpu - 1)); Meter_setCaption(this, caption); } if (this->param == 0) |