Fix off-by-one error in PROCESSOR display

This commit is contained in:
Hisham Muhammad
2011-09-08 02:48:53 +00:00
parent 4e72e790e3
commit f7fe4b4722
5 changed files with 5 additions and 5 deletions

View File

@ -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)