fix shred bytes counters
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user