From 6570197de0c9784ee245ead8e924860f2e93e192 Mon Sep 17 00:00:00 2001 From: PartialVolume Date: Wed, 11 Mar 2020 13:55:44 +0000 Subject: [PATCH] Fix individual device throughput. On completion of a device wipe, the throughput was continuing to be calculated for a completed wipe which resulted in the throughput for that particular device to gradually drop over time to zero if other drives were still This has now been corrected. Throughput calculation for a given device is stopped when the particular device has completed its wipe. --- src/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.c b/src/gui.c index 05aa7a5..4d49fab 100644 --- a/src/gui.c +++ b/src/gui.c @@ -2622,7 +2622,7 @@ int compute_stats( void* ptr ) * correct. Maintain a rolling average of throughput. */ nwipe_update_speedring( &c[i]->speedring, c[i]->round_done, nwipe_time_now ); - if( c[i]->speedring.timestotal > 0 ) + if( c[i]->speedring.timestotal > 0 && c[i]->wipe_status == 1 ) { /* Update the current average throughput in bytes-per-second. */ c[i]->throughput = c[i]->speedring.bytestotal / c[i]->speedring.timestotal;