fix(vhd/merge): fix performance enhancement (#2980)

This commit is contained in:
Nicolas Raynaud
2018-05-30 01:26:15 -07:00
committed by Julien Fontanet
parent 7be8f38c6b
commit d7cfe4d3dc

View File

@@ -476,12 +476,12 @@ export default class Vhd {
// For each sector of block data...
const { sectorsPerBlock } = child
let parentBitmap = null
for (let i = 0; i < sectorsPerBlock; i++) {
// If no changes on one sector, skip.
if (!mapTestBit(bitmap, i)) {
continue
}
let parentBitmap = null
let endSector = i + 1
// Count changed sectors.