* Add support for file system read and write counting (needed for the disk

* fsusage.c: * Add support for file system read and write counting
	(needed for the disk load feature of the multiload applet).
This commit is contained in:
Benoît Dejean
2005-02-28 08:11:15 +00:00
parent c97d63f368
commit fc7d872381
2 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: * Add support for file system read and write counting
(needed for the disk load feature of the multiload applet).
2005-02-23 Benoît Dejean <TazForEver@dlfp.org> 2005-02-23 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: (glibtop_get_fsusage_s): Correct file system size calculations. * fsusage.c: (glibtop_get_fsusage_s): Correct file system size calculations.

View File

@@ -140,6 +140,15 @@ _glibtop_get_fsusage_read_write(glibtop *server,
} }
#elif defined(__FreeBSD__)
void G_GNUC_INTERNAL
_glibtop_freebsd_get_fsusage_read_write(glibtop *server,
glibtop_fsusage *buf,
const char *path);
#define _glibtop_get_fsusage_read_write(S, B, P) \
_glibtop_freebsd_get_fsusage_read_write(S, B, P)
#else /* default fallback */ #else /* default fallback */
#warning glibtop_get_fsusage .read .write are not implemented. #warning glibtop_get_fsusage .read .write are not implemented.
static inline void static inline void