summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-05-13 15:18:12 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-05-13 15:18:12 (GMT)
commit8fc87f22672fcd0128db11d98624f1dfaba50afe (patch)
tree32425f75c10bd2b3825d15f4f330fde47ab0e152 /tools/h5ls.c
parent3967b1f5dbbb8c6a10891d2e2be246abaa637bf2 (diff)
downloadhdf5-8fc87f22672fcd0128db11d98624f1dfaba50afe.zip
hdf5-8fc87f22672fcd0128db11d98624f1dfaba50afe.tar.gz
hdf5-8fc87f22672fcd0128db11d98624f1dfaba50afe.tar.bz2
[svn-r1253] started to bring the tools lib and the dumputil file together. incorportated all
the constants and from dumputil to to the tools lib and merged h5dump_fixtype together. I had to add an extra parameter to the function to specify what action should be taken when it hits H5T_STRING in the case statement. if the parameter (strDUAction) is true then it does what it use to do in dumputil but if it is false then it will do what it originally did in this file. I also put the h5dump_sprint functions into the same file. it isn't really merged yet. i just wanted to get everything into a file and then worry about the merging of this function. The toolslib way of h5dump_sprint takes an extra parameter. If this parameter is set to NULL then it will do the dumputil's version of this function. like i said this is just the first step i am taking. it will be merged better later. the rest of the changes to the other files were related to the above changes.
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index b686f7d..cf8e905 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1098,7 +1098,7 @@ list_attr (hid_t obj, const char *attr_name, void UNUSED *op_data)
info.line_pre = " %s \"";
info.line_suf = "\"";
}
- if ((p_type=h5dump_fixtype(type))>=0) {
+ if ((p_type=h5dump_fixtype(type,FALSE))>=0) {
need = nelmts * MAX(H5Tget_size(type), H5Tget_size(p_type));
buf = malloc(need);
assert(buf);
@@ -1246,7 +1246,7 @@ dataset_list2(hid_t dset, const char UNUSED *name)
#else
utilization = (used*100.0)/total;
#endif
- if (total) printf(", %1.2f%% utilization", utilization);
+ printf(", %1.2f%% utilization", utilization/*(used*100.0)/total*/);
}
putchar('\n');