From 863a37914d1a3d1a787eb2d14c40ab5a3b0568dd Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 30 Oct 2006 02:27:36 +0000 Subject: [PATCH] Partial fix for NetBSD volume reporting --- src/probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/probe.c b/src/probe.c index 59ca375..2e3948c 100644 --- a/src/probe.c +++ b/src/probe.c @@ -534,8 +534,8 @@ static int _volinfo_bsd_append(struct volinfo ** dev, struct statvfs * buf, fprintf(stderr, "_volinfo_append: %s\n", p[nb].name); # endif p[nb].block_size = buf->f_bsize; - p[nb].total = buf->f_blocks; - p[nb].free = buf->f_bavail; + p[nb].total = buf->f_blocks * 2048 / buf->f_bsize; + p[nb].free = buf->f_bavail * 2048 / buf->f_bsize; return 0; } #endif /* defined(_volinfo_bsd) */