bugfix/ai-static-analysis #82

Merged
localhorst merged 33 commits from bugfix/ai-static-analysis into master 2025-12-10 21:52:17 +01:00
15 changed files with 275 additions and 179 deletions
Showing only changes of commit acc05dac8b - Show all commits

View File

@ -6,7 +6,7 @@
*/
#include "../include/reHDD.h"
using namespace std;
bool Printer::instanceFlag = false;
Printer *Printer::single = NULL;

View File

@ -224,6 +224,8 @@ double Shred::calcProgress()
#ifdef ZERO_CHECK
uiMaxShredIteration++; // increment because we will check after SHRED_ITERATIONS the drive for non-zero bytes
#endif
if (this->ulDriveByteSize == 0)
return 0.0;
return (double)(((double)ulDriveByteOverallCount) / ((double)this->ulDriveByteSize * uiMaxShredIteration)) * 100.0f;
}