fix(writer): Fix state verification count

Change-Type: patch
This commit is contained in:
Jonas Hermsmeier 2018-03-21 19:52:37 +01:00
parent ef634227aa
commit 3424b996c8
No known key found for this signature in database
GPG Key ID: 1B870F801A0CEE9F

View File

@ -395,7 +395,7 @@ class ImageWriter extends EventEmitter {
this.destinations.forEach((dest) => {
state.flashing += !dest.error && !dest.finished ? 1 : 0
state.verifying += !dest.error && !dest.verified ? 1 : 0
state.verifying += !dest.error && dest.finished && !dest.verified ? 1 : 0
state.failed += dest.error ? 1 : 0
if (!(dest.finished && dest.verified) && !dest.error) {
state.totalSpeed += state.type === 'write'