This commit is contained in:
2021-09-03 15:18:46 +02:00
parent c3a26fdcaf
commit bd895148ea
2 changed files with 4 additions and 7 deletions

View File

@ -1317,9 +1317,7 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
if (isPof) {
printf("pofFooterOfst:%d, dstfilepos:%d %d%%\r", pofFooterOfst,
dstFilePos,
(int)(((double)(pofFooterOfst - dstFilePos) /
pofFooterOfst) *
100));
(int)(((double)(dstFilePos) / pofFooterOfst) * 100));
fflush(stdout);
// pof: exit early to discard footer
if (dstFilePos >= pofFooterOfst) {