From: Felix Domke Date: Sun, 26 Apr 2009 21:26:29 +0000 (+0200) Subject: Patch by pieterg: use SI units to display size of HDD (makes HDD 3% cheaper -> more... X-Git-Tag: 2.6.0~326 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/b48a6df5d1bb24e9e4b67b31ffe70c54846a9440 Patch by pieterg: use SI units to display size of HDD (makes HDD 3% cheaper -> more money for us) --- diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index c34511db..6148caac 100755 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -70,7 +70,7 @@ class Harddisk: cap = self.diskSize() if cap == 0: return "" - return "%d.%03d GB" % (cap/1024, cap%1024) + return "%d.%03d GB" % (cap/1000, cap%1000) def model(self): if self.device[:2] == "hd":