diff --git a/sysdeps/common/ChangeLog b/sysdeps/common/ChangeLog index b1561c03..c09ca310 100644 --- a/sysdeps/common/ChangeLog +++ b/sysdeps/common/ChangeLog @@ -1,3 +1,9 @@ +2005-02-23 Benoît Dejean + + * 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 * fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage. diff --git a/sysdeps/common/fsusage.c b/sysdeps/common/fsusage.c index 058bdba8..732f7665 100644 --- a/sysdeps/common/fsusage.c +++ b/sysdeps/common/fsusage.c @@ -260,8 +260,9 @@ glibtop_get_fsusage_s (glibtop *server, glibtop_fsusage *buf, if (statvfs (path, &fsd) < 0) return; -#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) - /* Solaris but not SunOS */ +#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) \ + || defined(__FreeBSD__) + /* Solaris but not SunOS and FreeBSD */ buf->block_size = fsd.f_frsize; #else /* else, including Linux */