[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
This commit is contained in:
Quincey Koziol 2005-01-25 08:18:37 -05:00
parent 866b37b337
commit 5695ffc13d

View File

@ -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);
}