mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
wip
This commit is contained in:
@ -3771,9 +3771,8 @@ int program_fpga(int file_des) {
|
|||||||
}
|
}
|
||||||
// print progress
|
// print progress
|
||||||
LOG(logINFO,
|
LOG(logINFO,
|
||||||
("Copying Program to /var/tmp/:%d%%\r",
|
("\tCopying Program to /var/tmp/:%d%%\r",
|
||||||
(int)(((double)(totalsize - filesize) / totalsize) *
|
(int)(((double)(totalsize - filesize) / totalsize) * 100)));
|
||||||
100)));
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
if (ret == FAIL) {
|
if (ret == FAIL) {
|
||||||
@ -3784,7 +3783,7 @@ int program_fpga(int file_des) {
|
|||||||
}
|
}
|
||||||
free(src);
|
free(src);
|
||||||
fclose(fd);
|
fclose(fd);
|
||||||
LOG(logINFO, ("\tCopying done\n"));
|
LOG(logINFO, ("\n\tCopying done\n"));
|
||||||
|
|
||||||
/* if (ret != FAIL) {
|
/* if (ret != FAIL) {
|
||||||
fpgasrc[totalsize] = '\0';
|
fpgasrc[totalsize] = '\0';
|
||||||
|
@ -1317,9 +1317,7 @@ std::vector<char> DetectorImpl::readProgrammingFile(const std::string &fname) {
|
|||||||
if (isPof) {
|
if (isPof) {
|
||||||
printf("pofFooterOfst:%d, dstfilepos:%d %d%%\r", pofFooterOfst,
|
printf("pofFooterOfst:%d, dstfilepos:%d %d%%\r", pofFooterOfst,
|
||||||
dstFilePos,
|
dstFilePos,
|
||||||
(int)(((double)(pofFooterOfst - dstFilePos) /
|
(int)(((double)(dstFilePos) / pofFooterOfst) * 100));
|
||||||
pofFooterOfst) *
|
|
||||||
100));
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
// pof: exit early to discard footer
|
// pof: exit early to discard footer
|
||||||
if (dstFilePos >= pofFooterOfst) {
|
if (dstFilePos >= pofFooterOfst) {
|
||||||
|
Reference in New Issue
Block a user