From 5695ffc13d3a469064098793ebcf0c8914fdf1fd Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 25 Jan 2005 08:18:37 -0500 Subject: [PATCH] [svn-r9869] Purpose: Bug fix Description: In an earlier bug-fix, I inadvertently inverted the meaning of the "% utilization" in h5ls. Solution: De-invert it. :-) Platforms tested: FreeBSD 4.10 (sleipnir) Too minor to require h5committest --- tools/h5ls/h5ls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index 9ddababdc0..06445fb7e7 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); }