From dd62eda1b49262879835971b20acdb93c3e7f11b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 4 Feb 2002 20:48:49 +0000 Subject: [PATCH] Diskstat fix for FreeBSD --- mbtask/taskdisk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mbtask/taskdisk.c b/mbtask/taskdisk.c index 6ae70faf..17cf0a2f 100644 --- a/mbtask/taskdisk.c +++ b/mbtask/taskdisk.c @@ -101,7 +101,9 @@ char *get_diskstat() mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); for (i = 0; i < mntsize; i++) { - if ((strncmp(mntbuf[i].f_fstypename, (char *)"kernfs", 6)) && (statfs(mntbuf[i].f_mntonname, &sfs) == 0)) { + if ((strncmp(mntbuf[i].f_fstypename, (char *)"kernfs", 6)) && + (strncmp(mntbuf[i].f_fstypename, (char *)"procfs", 6)) && + (statfs(mntbuf[i].f_mntonname, &sfs) == 0)) { if (tmp == NULL) tmp = xstrcpy((char *)","); else