Skip to content

Commit

Permalink
Merge pull request #518 from ggruber/master
Browse files Browse the repository at this point in the history
progress dots added
  • Loading branch information
PartialVolume authored Nov 4, 2023
2 parents 63c64b9 + 28a9c70 commit e463b10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ int nwipe_device_scan( nwipe_context_t*** c )

while( ( dev = ped_device_get_next( dev ) ) )
{
/* to have some progress indication. can help if there are many/slow disks */
fprintf( stderr, "." );

if( check_device( c, dev, dcount ) )
dcount++;

Expand All @@ -95,6 +98,8 @@ int nwipe_device_get( nwipe_context_t*** c, char** devnamelist, int ndevnames )

for( i = 0; i < ndevnames; i++ )
{
/* to have some progress indication. can help if there are many/slow disks */
fprintf( stderr, "." );

dev = ped_device_get( devnamelist[i] );
if( !dev )
Expand Down
2 changes: 2 additions & 0 deletions src/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ void nwipe_log_summary( nwipe_context_t** ptr, int nwipe_selected )
/* Create the PDF report/certificate */
if( strcmp( nwipe_options.PDFreportpath, "noPDF" ) != 0 )
{
/* to have some progress indication. can help if there are many/slow disks */
fprintf( stderr, "." );
create_pdf( c[i] );
}
}
Expand Down

0 comments on commit e463b10

Please sign in to comment.