summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-01-25 13:18:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-01-25 13:18:42 (GMT)
commit8b917152caa349285b071a7eb49e032d857c72f5 (patch)
treea3f56fd3aea20a166ddd58401d4abdbfbf1dd9b9 /tools
parentbfe9cad3a28f142b58910401e1ce536dc7225bcf (diff)
downloadhdf5-8b917152caa349285b071a7eb49e032d857c72f5.zip
hdf5-8b917152caa349285b071a7eb49e032d857c72f5.tar.gz
hdf5-8b917152caa349285b071a7eb49e032d857c72f5.tar.bz2
[svn-r9870] 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
Diffstat (limited to 'tools')
-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 f3b5d3a..3230b52 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1545,9 +1545,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);
}