diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-06-17 21:15:32 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-06-17 21:15:32 (GMT) |
commit | dd23059807cd092c50747479141be92a8fd80813 (patch) | |
tree | 830d7defcf4faa2fce7f10bb178dbd3bc8338048 /src/H5T.c | |
parent | 22538a0c799bcb82b40346849776e354fbc18fee (diff) | |
download | hdf5-dd23059807cd092c50747479141be92a8fd80813.zip hdf5-dd23059807cd092c50747479141be92a8fd80813.tar.gz hdf5-dd23059807cd092c50747479141be92a8fd80813.tar.bz2 |
[svn-r430] Changes since 19980617
----------------------
./src/H5T.c
Fixed a potential division by zero error.
./src/H5Fistore.c
Fixed an assertion failure that I accidently introduced with
the previous changes.
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -595,14 +595,19 @@ H5T_term_interface(void) H5T_get_size (path->dst)); nbytes *= path->cdata.stats->nelmts; HDfprintf (stderr, - " %-*s %8Hd/%-5d %8.2f %8.2f %8.2f %15g\n", + " %-*s %8Hd/%-5d %8.2f %8.2f %8.2f", H5T_NAMELEN-1, path->name, path->cdata.stats->nelmts, path->cdata.stats->ncalls, path->cdata.stats->timer.utime, path->cdata.stats->timer.stime, - path->cdata.stats->timer.etime, - nbytes / path->cdata.stats->timer.etime); + path->cdata.stats->timer.etime); + if (path->cdata.stats->timer.etime>0) { + HDfprintf (stderr, " %15g\n", + nbytes / path->cdata.stats->timer.etime); + } else { + HDfprintf (stderr, " %15s\n", "Inf"); + } } #endif H5T_close (path->src); |