This commit is contained in:
maliakal_d 2021-09-03 14:55:06 +02:00
parent 8e58d1907d
commit 8c527bcc0d

View File

@ -1314,10 +1314,10 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
// Swap bits from source and write to dest // Swap bits from source and write to dest
while (!feof(src)) { while (!feof(src)) {
// print progress // print progress
LOG(logINFO, LOG(logINFO) << "Converting program to rawbin";
("Converting program to rawbin :%d%%\r", printf("%d%%\r",
(int)(((double)(pofFooterOfst - dstFilePos) / pofFooterOfst) * (int)(((double)(pofFooterOfst - dstFilePos) / pofFooterOfst) *
100))); 100));
fflush(stdout); fflush(stdout);
// pof: exit early to discard footer // pof: exit early to discard footer
if (isPof && dstFilePos >= pofFooterOfst) { if (isPof && dstFilePos >= pofFooterOfst) {