Fix percentage calculation for IS5 only

This commit is contained in:
PartialVolume
2020-01-12 10:20:17 +00:00
parent df07393f9d
commit 0a53ec9c42

View File

@@ -1196,12 +1196,19 @@ void calculate_round_size( nwipe_context_t* c )
/* This method ALWAYS verifies the 3rd pass so increase by device size,
* and does not need to be increased by device size for VERIFY_ALL*/
c->round_size += c->device_size;
if( nwipe_options.verify == NWIPE_VERIFY_LAST )
{
c->round_size += c->device_size;
}
if( nwipe_options.verify == NWIPE_VERIFY_ALL )
{
c->round_size += c->device_size;
}
else
{
/* Adjusts for verify on every third pass multiplied by number of rounds */
c->round_size += ( c->device_size * c->round_count );
}
if( nwipe_options.noblank == 0 )
{
c->round_size += c->device_size;