mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-11 16:01:00 +08:00
Fix HDFFV-8089
Description: Some code within an "ifdef H5D_CHUNK_DEBUG" block was using outdated data structure but not caught because the case of H5D_CHUNK_DEBUG being defined was never tested. It was commented out. I defined H5D_CHUNK_DEBUG, tested, and commented out again. Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
This commit is contained in:
parent
f21b268812
commit
37c56ebd37
@ -6060,9 +6060,9 @@ H5D__chunk_stats(const H5D_t *dset, hbool_t headers)
|
||||
#endif
|
||||
|
||||
if (headers) {
|
||||
if (rdcc->nhits>0 || rdcc->nmisses>0) {
|
||||
miss_rate = 100.0 * rdcc->nmisses /
|
||||
(rdcc->nhits + rdcc->nmisses);
|
||||
if (rdcc->stats.nhits>0 || rdcc->stats.nmisses>0) {
|
||||
miss_rate = 100.0 * rdcc->stats.nmisses /
|
||||
(rdcc->stats.nhits + rdcc->stats.nmisses);
|
||||
} else {
|
||||
miss_rate = 0.0;
|
||||
}
|
||||
@ -6073,8 +6073,8 @@ H5D__chunk_stats(const H5D_t *dset, hbool_t headers)
|
||||
}
|
||||
|
||||
fprintf(H5DEBUG(AC), " %-18s %8u %8u %7s %8d+%-9ld\n",
|
||||
"raw data chunks", rdcc->nhits, rdcc->nmisses, ascii,
|
||||
rdcc->ninits, (long)(rdcc->nflushes)-(long)(rdcc->ninits));
|
||||
"raw data chunks", rdcc->stats.nhits, rdcc->stats.nmisses, ascii,
|
||||
rdcc->stats.ninits, (long)(rdcc->stats.nflushes)-(long)(rdcc->stats.ninits));
|
||||
}
|
||||
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user