Correct file system size calculations. Patch from marcus@freebsd.org (Joe

* fsusage.c: (glibtop_get_fsusage_s): Correct file system size calculations.
	Patch from marcus@freebsd.org (Joe Marcus Clarke).
	Closes #168232.
This commit is contained in:
Benoît Dejean
2005-02-23 08:18:48 +00:00
parent e0ae6ebcaa
commit f031b77b3b
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2005-02-23 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: (glibtop_get_fsusage_s): Correct file system size calculations.
Patch from marcus@freebsd.org (Joe Marcus Clarke).
Closes #168232.
2005-02-15 Benoît Dejean <TazForEver@dlfp.org> 2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage. * fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage.

View File

@@ -260,8 +260,9 @@ glibtop_get_fsusage_s (glibtop *server, glibtop_fsusage *buf,
if (statvfs (path, &fsd) < 0) if (statvfs (path, &fsd) < 0)
return; return;
#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) #if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) \
/* Solaris but not SunOS */ || defined(__FreeBSD__)
/* Solaris but not SunOS and FreeBSD */
buf->block_size = fsd.f_frsize; buf->block_size = fsd.f_frsize;
#else #else
/* else, including Linux */ /* else, including Linux */