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

@ -55,7 +55,7 @@ in the source distribution for its full text.
#endif
#ifndef ProcessList_cpuId
#define ProcessList_cpuId(pl, cpu) ((pl)->countCPUsFromZero ? (cpu)-1 : (cpu))
#define ProcessList_cpuId(pl, cpu) ((pl)->countCPUsFromZero ? (cpu) : (cpu)+1)
#endif
}*/