virtual hdf file mapping fnum-1 images, fixed

This commit is contained in:
2018-04-25 16:52:14 +02:00
parent b5909044f6
commit 1c49fbb090
2 changed files with 5 additions and 6 deletions

View File

@ -511,8 +511,8 @@ public:
}
//hyperslab
int numMajorHyperslab = numf/maxFramesPerFile;
if (numf%maxFramesPerFile) numMajorHyperslab++;
int numMajorHyperslab = (numf-1)/maxFramesPerFile;
if ((numf-1)%maxFramesPerFile) numMajorHyperslab++;
bool error = false;
uint64_t framesSaved = 0;
for (int j = 0; j < numMajorHyperslab; j++) {