diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-08-22 21:48:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-08-22 21:48:46 (GMT) |
commit | c48649abd8010095c013ac005d1ea4094f1c76b9 (patch) | |
tree | 0906f70eff022b41e6b2f128f4ffeee0c21a49c9 /src/H5timer.c | |
parent | 92d6292b1082f7696b3bbfc4ed3c5ff7727a8763 (diff) | |
download | hdf5-c48649abd8010095c013ac005d1ea4094f1c76b9.zip hdf5-c48649abd8010095c013ac005d1ea4094f1c76b9.tar.gz hdf5-c48649abd8010095c013ac005d1ea4094f1c76b9.tar.bz2 |
OESS-29 Fix shared MPI builds, more HD prefix
Diffstat (limited to 'src/H5timer.c')
-rw-r--r-- | src/H5timer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5timer.c b/src/H5timer.c index d309ae7..4f9f893 100644 --- a/src/H5timer.c +++ b/src/H5timer.c @@ -213,26 +213,26 @@ H5_bandwidth(char *buf/*out*/, double nbytes, double nseconds) if(H5_DBL_ABS_EQUAL(bw, 0.0F)) HDstrcpy(buf, "0.000 B/s"); else if(bw < 1.0F) - sprintf(buf, "%10.4e", bw); + HDsprintf(buf, "%10.4e", bw); else if(bw < H5_KB) { - sprintf(buf, "%05.4f", bw); + HDsprintf(buf, "%05.4f", bw); HDstrcpy(buf+5, " B/s"); } else if(bw < H5_MB) { - sprintf(buf, "%05.4f", bw / H5_KB); + HDsprintf(buf, "%05.4f", bw / H5_KB); HDstrcpy(buf+5, " kB/s"); } else if(bw < H5_GB) { - sprintf(buf, "%05.4f", bw / H5_MB); + HDsprintf(buf, "%05.4f", bw / H5_MB); HDstrcpy(buf+5, " MB/s"); } else if(bw < H5_TB) { - sprintf(buf, "%05.4f", bw / H5_GB); + HDsprintf(buf, "%05.4f", bw / H5_GB); HDstrcpy(buf+5, " GB/s"); } else if(bw < H5_EB) { - sprintf(buf, "%05.4f", bw / H5_TB); + HDsprintf(buf, "%05.4f", bw / H5_TB); HDstrcpy(buf+5, " TB/s"); } else { - sprintf(buf, "%10.4e", bw); + HDsprintf(buf, "%10.4e", bw); if(HDstrlen(buf) > 10) - sprintf(buf, "%10.3e", bw); + HDsprintf(buf, "%10.3e", bw); } } } /* end H5_bandwidth() */ |