mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Merge pull request #188 from PartialVolume/fix_is5_percentage
Fix percentage calculation for IS5 only
This commit is contained in:
11
src/method.c
11
src/method.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user