From 0cd1fd89de824dd1e374fdec06b004cc87d9a0b5 Mon Sep 17 00:00:00 2001 From: Luke Milby Date: Mon, 17 May 2021 20:32:05 -0500 Subject: [PATCH] Fix apt size of formatting (#1561) * update formatting for apt additional disk space message --- src/cowrie/commands/apt.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cowrie/commands/apt.py b/src/cowrie/commands/apt.py index c744bd04..c25bc42b 100644 --- a/src/cowrie/commands/apt.py +++ b/src/cowrie/commands/apt.py @@ -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: