mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
parent
866b37b337
commit
5695ffc13d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user