summaryrefslogtreecommitdiffstats
path: root/files/reprepro/snapshots
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-07 15:21:58 +0000
committerintrigeri <intrigeri@boum.org>2016-05-07 15:21:58 +0000
commit24fa0ce0c6af27dc6b83d225ab35378de705e608 (patch)
treea5d83352e0946bab019833808d73721f609daa48 /files/reprepro/snapshots
parent52e6fad0ba0d6104be1613514ffbe35740338b4c (diff)
Also report size after closing the DB.
It might be that some more space is reclaimed by DB->close().
Diffstat (limited to 'files/reprepro/snapshots')
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-compact-reprepro-db1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
index 19326fd..75a1a14 100755
--- a/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
+++ b/files/reprepro/snapshots/time_based/tails-compact-reprepro-db
@@ -32,6 +32,7 @@ for i in range(0, 10):
d.close()
size_after = os.path.getsize(args.path)
+print("After closing the database: {size} bytes".format(size=size_after))
print("⇒ saved {size} bytes ({percent}%)"
.format(size=size_before - size_after,
percent=int(100*(size_before - size_after)/size_before)