From ddf3128df980814c0a68d19a9f4535d089490d68 Mon Sep 17 00:00:00 2001 From: loderunner Date: Wed, 4 Oct 2006 16:25:41 +0000 Subject: Allocate per-processor values in a contiguous chunk of memory git-svn-id: svn://svn.code.sf.net/p/htop/code/trunk@59 63cc0a6c-1f0e-0410-841e-f6a342073da8 --- ProcessList.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ProcessList.h') diff --git a/ProcessList.h b/ProcessList.h index 9c42a72..ac111e3 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -54,6 +54,10 @@ in the source distribution for its full text. #define MAX_READ 2048 #endif +#ifndef PER_PROCESSOR_FIELDS +#define PER_PROCESSOR_FIELDS 20 +#endif + #ifdef DEBUG @@ -71,6 +75,7 @@ typedef struct ProcessList_ { int totalTasks; int runningTasks; + // Must match number of PER_PROCESSOR_FIELDS constant unsigned long long int* totalTime; unsigned long long int* userTime; unsigned long long int* systemTime; -- cgit v1.2.3