Index: sources/device/DeviceController.cpp =================================================================== diff -u -r89debc48633ccabd25635c97548bb9fb3b87aca2 -rf0da4054763371b2eba2f99241a6e0680a755b06 --- sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision 89debc48633ccabd25635c97548bb9fb3b87aca2) +++ sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision f0da4054763371b2eba2f99241a6e0680a755b06) @@ -1003,9 +1003,10 @@ if ( gLogCompress ) { ok = FileHandler::backupFile(fileSrc); } - logTally(QString(), fileDest); - ok = QFile::rename(fileSrc + gzipSufx, fileDest + gzipSufx); - LOG_DEBUG(QString("Penging Log: %1, %2").arg(fileSrc, fileDest)); + QString fileDestGz = fileDest + gzipSufx; + logTally(QString(), fileDestGz); + ok = QFile::rename(fileSrc + gzipSufx, fileDestGz); + LOG_DEBUG(QString("Pending Log: %1, %2").arg(fileSrc, fileDestGz)); // Now the serial received and the system is logging in the log with the serial number, // therefore it is not bootPOST. @@ -1078,7 +1079,7 @@ quint8 tally = 0; do { //do while used incase no c*. exists - tFileDest = (tally == 0) ? vFileDest.arg("") : vFileDest.arg(tally); + tFileDest = ((tally == 0) ? vFileDest.arg("") : vFileDest.arg(tally)); ++tally; LOG_DEBUG(QString("Tally: %1, %2, %3, %4").arg(tally).arg(vFilePath,vFileDest,tFileDest)); } while (QFile::exists(vFilePath + tFileDest));