Skip to content

Commit a17c8b2

Browse files
committed
show total flash size in partition map
1 parent 825bd71 commit a17c8b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tetherback/tetherback.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def uevent_dict(path):
189189
if args.dry_run or missing or args.verbose > 0:
190190
print()
191191
print(tabulate( [[ devname, partname, size//2] + backup_how(partname, backup_partitions)
192-
for partname, (devname, partn, size) in partmap.items() ],
192+
for partname, (devname, partn, size) in partmap.items() ]
193+
+[[ '', 'Total:', sum(size//2 for devname, partn, size in partmap.values()), '', '']],
193194
[ 'BLOCK DEVICE','NAME','SIZE (KiB)','FILENAME','FORMAT' ] ))
194195
print()
195196

0 commit comments

Comments
 (0)