Merge pull request #175 from PartialVolume/show_percentage_on_completion

Show percentage completed, on completion of wipe.
This commit is contained in:
PartialVolume
2019-12-30 18:21:34 +00:00
committed by GitHub

View File

@@ -1983,7 +1983,7 @@ void *nwipe_gui_status( void *ptr )
else
{
if( c[i]->result == 0 ) { mvwprintw( main_window, yy++, 4, "(SUCCESS!) " ); }
if( c[i]->result == 0 ) { mvwprintw( main_window, yy++, 4, "[%05.2f%% complete, SUCCESS! ", c[i]->round_percent); }
else if( c[i]->signal ) { mvwprintw( main_window, yy++, 4, "(>>> FAILURE! <<<, signal %i) ", c[i]->signal ); }
else { mvwprintw( main_window, yy++, 4, "(>>>FAILURE!<<<, code %i) ", c[i]->result ); }