Fix apt size of formatting (#1561)

* update formatting for apt additional disk space message
This commit is contained in:
Luke Milby 2021-05-17 20:32:05 -05:00 committed by GitHub
parent ec39aad0a0
commit 0cd1fd89de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -142,10 +142,8 @@ pages for more information and options.
% len(packages)
)
self.write("Need to get %s.2kB of archives.\n" % (totalsize))
self.write(
"After this operation, {}kB of additional disk space will be used.\n".format(
totalsize * 2.2
)
self.write("After this operation, {:.1f}kB of additional disk space will be used.\n".format(
totalsize * 2.2)
)
i = 1
for p in packages: