From e5a0f85d564efca4b21b28d8e76417a052d3eb91 Mon Sep 17 00:00:00 2001 From: PartialVolume Date: Mon, 30 Dec 2019 18:18:15 +0000 Subject: [PATCH] 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. --- src/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.c b/src/gui.c index 9d642c0..564c157 100644 --- a/src/gui.c +++ b/src/gui.c @@ -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 ); }