summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-03-22 20:37:08 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-03-22 20:37:08 +0000
commita9c0ea375323a3f801636f95a76afd0fd1328c5d (patch)
tree6c8f551197bc53097e4ab2618ca20eb1fe0f0696 /ProcessList.h
parentb56195663760d76ea61d9ed15121dd4a13fa68cd (diff)
* Option for counting CPUs from zero
(thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.)
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h4
1 files changed, 4 insertions, 0 deletions
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy