We write 'mapped_size' amount of data, not the entire image, so use the correct
variable when calculating the flashing speed.
Change-Id: I68a7eb597c3e29e4c4795ca907d13cdb466e5363
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
raise SystemExit(1)
copying_time = time.time() - start_time
- copying_speed = writer.bmap_image_size / copying_time
+ copying_speed = writer.bmap_mapped_size / copying_time
log.info("copying time: %s, copying speed %s/sec" \
% (BmapHelpers.human_time(copying_time), \
BmapHelpers.human_size(copying_speed)))