changed progress percentage calculation

This commit is contained in:
2022-05-14 15:21:14 +02:00
parent c8a3220c3a
commit 4fc44d9926
4 changed files with 29 additions and 16 deletions

View File

@ -40,13 +40,14 @@ private:
fileDescriptor driveFileDiscr;
unsigned char caChunk[CHUNK_SIZE];
unsigned long ulDriveByteSize;
unsigned long ulDriveByteOverallCount = 0; //all bytes shredded in all iterations + checking -> used for progress calculation
double d32Percent = 0.0;
double d32TmpPercent = 0.0;
inline double calcProgress(unsigned long ulDriveByteIndex, unsigned int uiIteration);
inline double calcProgress();
int iRewindDrive(fileDescriptor file);
unsigned long getDriveSizeInBytes(fileDescriptor file);
unsigned int uiCalcChecksum(fileDescriptor file);
unsigned int uiCalcChecksum(fileDescriptor file, Drive* drive, int* ipSignalFd);
void cleanup();
};