summaryrefslogtreecommitdiffstats
path: root/tools/pvscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c
index d862d58e..126259ea 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -167,8 +167,7 @@ int pvscan(struct cmd_context *cmd, int argc, char **argv)
size_new += pv->size;
size_total += pv->size;
} else
- size_total += (pv->pe_count - pv->pe_alloc_count)
- * pv->pe_size;
+ size_total += pv->pe_count * pv->pe_size;
}
/* find maximum pv name length */