This commit is contained in:
2022-08-20 09:59:27 +02:00
parent 42668e54d2
commit e7a1cb1887
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,7 @@ int Shred::shredDrive(Drive* drive, int* ipSignalFd)
while (ulDriveByteCounter < ulDriveByteSize)
{
int iBytesToShred = 0; //Bytes that will be overwritten in this chunk-iteration
/*
if((u32ChunkDimensionIndex == 0U) && (uiShredIterationCounter != (SHRED_ITERATIONS-1)))
{
//read new chunks from random source if needed and this is NOT the last shred iteration
@ -114,7 +114,7 @@ int Shred::shredDrive(Drive* drive, int* ipSignalFd)
#endif
}
*/
if((ulDriveByteSize-ulDriveByteCounter) < CHUNK_SIZE)
{
iBytesToShred = (ulDriveByteSize-ulDriveByteCounter);