c451f627b0
of patches --, you can't imagine. July 27, 2006: Overview of changes in 2.14.2 ============================================ * Updated solaris support (hua.zhang@sun.com) * Small linux updates and improvments. April 10, 2006: Overview of changes in 2.14.1 ============================================= * Updated translations. * Fixed NetBSD port (Julio M. Merino Vidal <jmmv@NetBSD.org>). * Fixed some warnings.
19 lines
592 B
Text
19 lines
592 B
Text
$NetBSD: patch-ad,v 1.5 2006/08/06 19:06:44 jmmv Exp $
|
|
|
|
--- sysdeps/freebsd/fsusage.c.orig 2006-04-09 18:52:45.000000000 +0200
|
|
+++ sysdeps/freebsd/fsusage.c
|
|
@@ -47,8 +47,12 @@ _glibtop_freebsd_get_fsusage_read_write(
|
|
return;
|
|
}
|
|
|
|
+#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
|
|
}
|