fix shred bytes counters

This commit is contained in:
2025-12-10 21:44:27 +01:00
parent cbf781f0e5
commit 26c42a7e5d

View File

@ -146,6 +146,8 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd)
shredSpeed.ulSpeedMetricBytesWritten += iByteShredded;
drive->sShredSpeed.store(shredSpeed);
ulDriveByteCounter += iByteShredded;
ulDriveByteOverallCount += iByteShredded;
d32Percent = this->calcProgress();
#ifdef LOG_LEVEL_HIGH
Logger::logThis()->info("Shred-Task: ByteCount: " + to_string(ulDriveByteCounter) + " - iteration: " + to_string((uiShredIterationCounter + 1)) + " - progress: " + to_string(d32Percent) + " - Drive: " + drive->getSerial());