diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
commit | 031c3bb95f3d0a74d985286068baa6dd4d29d83f (patch) | |
tree | f8258f898976e17dfbc9df30ca357be6cb3605a5 /CPUMeter.c | |
parent | bb3dd9e92f5a33ba5dd1192edc1671192e63cc8e (diff) | |
download | debian_htop-031c3bb95f3d0a74d985286068baa6dd4d29d83f.tar.gz debian_htop-031c3bb95f3d0a74d985286068baa6dd4d29d83f.tar.bz2 debian_htop-031c3bb95f3d0a74d985286068baa6dd4d29d83f.zip |
Imported Upstream version 0.5.3upstream/0.5.3
Diffstat (limited to 'CPUMeter.c')
-rw-r--r-- | CPUMeter.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -14,7 +14,6 @@ in the source distribution for its full text. #include <curses.h> #include <string.h> #include <math.h> -#include <sys/param.h> #include "debug.h" #include <assert.h> @@ -31,6 +30,13 @@ struct CPUMeter_ { }*/ +#ifndef MIN +#define MIN(a,b) ((a)<(b)?(a):(b)) +#endif +#ifndef MAX +#define MAX(a,b) ((a)>(b)?(a):(b)) +#endif + CPUMeter* CPUMeter_new(ProcessList* pl, int processor) { CPUMeter* this = malloc(sizeof(CPUMeter)); char* caption; |