diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index ce808a202..c10ae39db 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -3771,9 +3771,8 @@ int program_fpga(int file_des) { } // print progress LOG(logINFO, - ("Copying Program to /var/tmp/:%d%%\r", - (int)(((double)(totalsize - filesize) / totalsize) * - 100))); + ("\tCopying Program to /var/tmp/:%d%%\r", + (int)(((double)(totalsize - filesize) / totalsize) * 100))); fflush(stdout); } if (ret == FAIL) { @@ -3784,7 +3783,7 @@ int program_fpga(int file_des) { } free(src); fclose(fd); - LOG(logINFO, ("\tCopying done\n")); + LOG(logINFO, ("\n\tCopying done\n")); /* if (ret != FAIL) { fpgasrc[totalsize] = '\0'; diff --git a/slsDetectorSoftware/src/DetectorImpl.cpp b/slsDetectorSoftware/src/DetectorImpl.cpp index e2e607063..329494c1a 100644 --- a/slsDetectorSoftware/src/DetectorImpl.cpp +++ b/slsDetectorSoftware/src/DetectorImpl.cpp @@ -1317,9 +1317,7 @@ std::vector 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) {