Update media scan GUI error times via events.

This commit is contained in:
2019-04-21 01:54:06 +01:00
parent a800ddb0ab
commit 5dd3903005
6 changed files with 26 additions and 4 deletions

View File

@@ -155,6 +155,7 @@ namespace DiscImageChef.Core.Devices.Scanning
}
else
{
ScanUnreadable?.Invoke(blocksToRead);
results.Errored += blocksToRead;
for(ulong b = i; b < i + blocksToRead; b++) results.UnreadableSectors.Add(b);
@@ -250,6 +251,7 @@ namespace DiscImageChef.Core.Devices.Scanning
}
else
{
ScanUnreadable?.Invoke(blocksToRead);
results.Errored += blocksToRead;
results.UnreadableSectors.Add(currentBlock);
mhddLog.Write(currentBlock, duration < 500 ? 65535 : duration);