summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-07 10:42:06 +0000
committerintrigeri <intrigeri@boum.org>2016-05-07 10:42:06 +0000
commit9b887913b005723195903d0d3765189605446e69 (patch)
tree0182890f63f97ca10c30bea3096901d55c849375 /files/reprepro/snapshots
parent4689f4d16fe61591e0a952e43f4ce39b619446a3 (diff)
tails-compact-reprepro-db: report percentage saved.
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-compact-reprepro-db5
1 files changed, 4 insertions, 1 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
index aba9b1d..76e50eb 100755
--- a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
+++ b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
@@ -31,4 +31,7 @@ d.close()
size_after = os.path.getsize(args.path)
print("After compacting: {size} bytes".format(size=size_after))
-print("⇒ saved {size} bytes".format(size=size_before - size_after))
+print("⇒ saved {size} bytes ({percent}%)"
+ .format(size=size_before - size_after,
+ percent=int(100*(size_before - size_after)/size_before)
+ ))