martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
690 stars 79 forks source link

Fixes ETA under fault condition #375

Closed PartialVolume closed 2 years ago

PartialVolume commented 2 years ago

If a faulty drive fails mid wipe and it's throughput drops until eventually reaching zero. The ETA calculation grows to an enormously high value.

This patch prevents the ETA being calculated if the throughput for a given drive drops below 100,000 bytes per second. In this way we can still see that something is wrong because the ETA is much higher than normal but prevents the sort of calculation that looks like this ! 90867213:29:12 i.e .. 90,867,213 hours, 29 minutes and 12 seconds, or put another way, 3,786,133 days or 10,372 years.

Fixes #372