summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/h5ls/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index 9ddabab..06445fb 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1546,9 +1546,9 @@ dataset_list2(hid_t dset, const char UNUSED *name)
(unsigned long)used, 1==used?"":"s");
if (used>0) {
#ifdef WIN32
- utilization = (hssize_t)used*100.0 /(hssize_t)total;
+ utilization = (hssize_t)total * 100.0 / (hssize_t)used;
#else
- utilization = (used*100.0)/total;
+ utilization = (total*100.0)/used;
#endif
printf(", %1.2f%% utilization", utilization);
}