top: adapt source to changes with includes, <STAT> api
All other programs were able to accommodate the change in name from readstat.h to stat.h without modification because they were all using that procps.h header file. Well now top can too (providing you ignore a comment). Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
3a48427d5d
commit
f6d6d305e7
@ -232,7 +232,7 @@ enum Rel_items {
|
|||||||
};
|
};
|
||||||
// mem stack results extractor macro, where e=rel enum
|
// mem stack results extractor macro, where e=rel enum
|
||||||
#define MEM_VAL(e) Mem_stack->head[e].result.ul_int
|
#define MEM_VAL(e) Mem_stack->head[e].result.ul_int
|
||||||
// --------------------------------------------- <proc/readstat.h>
|
// ------------------------------------------------- <proc/stat.h>
|
||||||
static struct procps_stat *Cpu_ctx;
|
static struct procps_stat *Cpu_ctx;
|
||||||
static struct procps_jiffs_hist *Cpu_jiffs;
|
static struct procps_jiffs_hist *Cpu_jiffs;
|
||||||
// ------------------------------------------------- <proc/pids.h>
|
// ------------------------------------------------- <proc/pids.h>
|
||||||
|
@ -20,8 +20,7 @@
|
|||||||
#ifndef _Itop
|
#ifndef _Itop
|
||||||
#define _Itop
|
#define _Itop
|
||||||
|
|
||||||
#include <proc/pids.h>
|
#include <proc/procps.h>
|
||||||
#include <proc/readstat.h>
|
|
||||||
|
|
||||||
/* Defines represented in configure.ac ----------------------------- */
|
/* Defines represented in configure.ac ----------------------------- */
|
||||||
//#define BOOST_PERCNT /* enable extra precision for two % fields */
|
//#define BOOST_PERCNT /* enable extra precision for two % fields */
|
||||||
|
Loading…
Reference in New Issue
Block a user