Line
Link Here
|
0 |
-- |
0 |
++ b/lmon.c |
1 |
-- a/lmon.c |
|
|
Lines 42-47
Link Here
|
42 |
pi_delayacct_blkio_ticks |
42 |
pi_delayacct_blkio_ticks |
43 |
*/ |
43 |
*/ |
44 |
|
44 |
|
|
|
45 |
/* Fix compatibility for glibc */ |
46 |
#define __STRING(x) #x |
47 |
|
45 |
/* note: RAW assumes you are using the index "i" to select the CPU */ |
48 |
/* note: RAW assumes you are using the index "i" to select the CPU */ |
46 |
#define RAW(member) (long)((long)(p->cpuN[i].member) - (long)(q->cpuN[i].member)) |
49 |
#define RAW(member) (long)((long)(p->cpuN[i].member) - (long)(q->cpuN[i].member)) |
47 |
#define RAWTOTAL(member) (long)((long)(p->cpu_total.member) - (long)(q->cpu_total.member)) |
50 |
#define RAWTOTAL(member) (long)((long)(p->cpu_total.member) - (long)(q->cpu_total.member)) |
Lines 583-589
Link Here
|
583 |
int isroot = 0; |
586 |
int isroot = 0; |
584 |
|
587 |
|
585 |
#include <mntent.h> |
588 |
#include <mntent.h> |
586 |
#include <fstab.h> |
|
|
587 |
#include <sys/stat.h> |
589 |
#include <sys/stat.h> |
588 |
#include <sys/statfs.h> |
590 |
#include <sys/statfs.h> |
589 |
#include <net/if.h> |
591 |
#include <net/if.h> |