From 181a2e8ab46793ef8d9ceeff2f0c15409d6e7a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 17 Apr 2014 18:46:25 +0200 Subject: [PATCH] GUI tweak: Fixed rounding --- kcc/KCC_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index ce3a784..dd6245e 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -540,7 +540,7 @@ class WorkerThread(QtCore.QThread): MW.addTrayMessage.emit('KindleUnpack failed to clean MOBI file!', 'Critical') else: GUI.progress.content = '' - epubSize = (os.path.getsize(self.kindlegenErrorCode[2]))/1024/1024 + epubSize = (os.path.getsize(self.kindlegenErrorCode[2]))//1024//1024 for item in outputPath: if os.path.exists(item): os.remove(item)