From 1641fdf90c815e32e7ab7acd17685038b14d47c9 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 7 May 2010 15:24:17 +0000 Subject: Fix truncated total size displayed by pvscan. --- tools/pvscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/pvscan.c') diff --git a/tools/pvscan.c b/tools/pvscan.c index ea4a3866..57882f67 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -166,7 +166,7 @@ int pvscan(struct cmd_context *cmd, int argc __attribute((unused)), size_new += pv_size(pv); size_total += pv_size(pv); } else - size_total += pv_pe_count(pv) * pv_pe_size(pv); + size_total += (uint64_t) pv_pe_count(pv) * pv_pe_size(pv); } /* find maximum pv name length */ -- cgit