summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-01-25 13:18:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-01-25 13:18:37 (GMT)
commit5695ffc13d3a469064098793ebcf0c8914fdf1fd (patch)
treeff889346c6de44066102b000f94a5b95a2a45afa
parent866b37b337c959c9c28febb6a5aef9644c592652 (diff)
downloadhdf5-5695ffc13d3a469064098793ebcf0c8914fdf1fd.zip
hdf5-5695ffc13d3a469064098793ebcf0c8914fdf1fd.tar.gz
hdf5-5695ffc13d3a469064098793ebcf0c8914fdf1fd.tar.bz2
[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
-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);
}