summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2007-05-17 18:29:30 +0000
committerHisham Muhammad <hisham@gobolinux.org>2007-05-17 18:29:30 +0000
commit9710a4300181927c6f4b9e34e23b1588dbb07f84 (patch)
tree4ce5bf5760aa061f93bce016a2938757ccbc4736 /ProcessList.c
parentdf20abfd672d033ac62c4d9245b8bb89fc76be94 (diff)
Fixes for /proc location, submitted by Florent Thoumie
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c6
1 files changed, 3 insertions, 3 deletions
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 "

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