From 9710a4300181927c6f4b9e34e23b1588dbb07f84 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 17 May 2007 18:29:30 +0000 Subject: Fixes for /proc location, submitted by Florent Thoumie --- ProcessList.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ProcessList.c') diff --git a/ProcessList.c b/ProcessList.c index 961f8d56..15739092 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -37,11 +37,11 @@ in the source distribution for its full text. #endif #ifndef PROCSTATFILE -#define PROCSTATFILE "/proc/stat" +#define PROCSTATFILE PROCDIR "/stat" #endif #ifndef PROCMEMINFOFILE -#define PROCMEMINFOFILE "/proc/meminfo" +#define PROCMEMINFOFILE PROCDIR "/meminfo" #endif #ifndef MAX_NAME @@ -426,7 +426,7 @@ static int ProcessList_readStatFile(ProcessList* this, Process *proc, FILE *f, c #else long int uzero; int num = ProcessList_read(this, location, - "%c %d %d %d %d %d %lu %lu %lu %lu " + "%c %u %u %u %u %u %lu %lu %lu %lu " "%lu %lu %lu %ld %ld %ld %ld %ld %ld " "%lu %lu %ld %lu %lu %lu %lu %lu " "%lu %lu %lu %lu %lu %lu %lu %lu " -- cgit v1.2.3