From f7fe4b4722129a8444b2f07d2ef1ce9d2500e613 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 8 Sep 2011 02:48:53 +0000 Subject: Fix off-by-one error in PROCESSOR display --- ProcessList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ProcessList.h') diff --git a/ProcessList.h b/ProcessList.h index ea8f71d0..c7bc5aca 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -57,7 +57,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 -- cgit v1.2.3