mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
fix(writer): Fix verify size for unaligned images (#1868)
Change-Type: patch
This commit is contained in:
parent
500af07689
commit
ecedff2cdf
@ -260,7 +260,11 @@ class ImageWriter extends EventEmitter {
|
||||
_createVerifyPipeline (options) {
|
||||
const pipeline = new Pipage()
|
||||
|
||||
const size = options.image.size.final.estimation ? this.bytesWritten : options.image.size.final.value
|
||||
let size = this.bytesWritten
|
||||
|
||||
if (!options.image.size.final.estimation) {
|
||||
size = Math.max(this.bytesWritten, options.image.size.final.value)
|
||||
}
|
||||
|
||||
const progressStream = new ProgressStream({
|
||||
length: size,
|
||||
|
Loading…
x
Reference in New Issue
Block a user