mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Show percentage completed, on completion of wipe.
Rather than delete percentage complete, show it. Because we were hiding percentage complete we were not aware of inaccuracies in the percentage calculation that are introduced when you toggle blanking and verification on various methods.
This commit is contained in:
@@ -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 ); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user