2006-08-06 21:06:44 +02:00
|
|
|
$NetBSD: patch-ad,v 1.5 2006/08/06 19:06:44 jmmv Exp $
|
2005-03-22 17:03:37 +01:00
|
|
|
|
2006-08-06 21:06:44 +02:00
|
|
|
--- sysdeps/freebsd/fsusage.c.orig 2006-04-09 18:52:45.000000000 +0200
|
2005-03-22 17:03:37 +01:00
|
|
|
+++ sysdeps/freebsd/fsusage.c
|
2006-08-06 21:06:44 +02:00
|
|
|
@@ -47,8 +47,12 @@ _glibtop_freebsd_get_fsusage_read_write(
|
2005-03-22 17:03:37 +01:00
|
|
|
return;
|
2005-03-27 13:18:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
+#ifdef HAVE_STATVFS_READS_COUNT
|
|
|
|
buf->read = sfs.f_syncreads + sfs.f_asyncreads;
|
|
|
|
+ buf->flags |= (1 << GLIBTOP_FSUSAGE_READ);
|
|
|
|
+#endif
|
|
|
|
+#ifdef HAVE_STATVFS_WRITES_COUNT
|
|
|
|
buf->write = sfs.f_syncwrites + sfs.f_asyncwrites;
|
|
|
|
-
|
|
|
|
- buf->flags |= (1 << GLIBTOP_FSUSAGE_READ) | (1 << GLIBTOP_FSUSAGE_WRITE);
|
|
|
|
+ buf->flags |= (1 << GLIBTOP_FSUSAGE_WRITE);
|
|
|
|
+#endif
|
|
|
|
}
|