mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 19:14:58 -05:00
gpt.py: generate_rawprogram fix size_in_KB
size_in_KB was calculated wrongly using of start_sector instead of the value of sectors
This commit is contained in:
parent
5105709799
commit
f90332b2a7
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class gpt(metaclass=LogBase):
|
|||
f"file_sector_offset=\"0\" filename=\"{filename}\" " + \
|
||||
f"label=\"{partition.name}\" num_partition_sectors=\"{partition.sectors}\" " + \
|
||||
f"partofsingleimage=\"{partofsingleimage}\" physical_partition_number=\"{str(lun)}\" " + \
|
||||
f"readbackverify=\"{readbackverify}\" size_in_KB=\"{(partition.sector * sectorsize / 1024):.1f}\" sparse=\"{sparse}\" " + \
|
||||
f"readbackverify=\"{readbackverify}\" size_in_KB=\"{(partition.sectors * sectorsize / 1024):.1f}\" sparse=\"{sparse}\" " + \
|
||||
f"start_byte_hex=\"{hex(partition.sector * sectorsize)}\" start_sector=\"{partition.sector}\"/>\n"
|
||||
partofsingleimage = "true"
|
||||
sectors = self.header["first_usable_lba"]
|
||||
|
|
Loading…
Reference in a new issue