From a9c0ea375323a3f801636f95a76afd0fd1328c5d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 22 Mar 2011 20:37:08 +0000 Subject: * Option for counting CPUs from zero (thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.) --- ProcessList.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ProcessList.h') diff --git a/ProcessList.h b/ProcessList.h index fdbf4202..ea8f71d0 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -56,6 +56,9 @@ in the source distribution for its full text. #define MAX_READ 2048 #endif +#ifndef ProcessList_cpuId +#define ProcessList_cpuId(pl, cpu) ((pl)->countCPUsFromZero ? (cpu)-1 : (cpu)) +#endif typedef struct CPUData_ { @@ -124,6 +127,7 @@ typedef struct ProcessList_ { bool highlightMegabytes; bool highlightThreads; bool detailedCPUTime; + bool countCPUsFromZero; } ProcessList; -- cgit v1.2.3