git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7064bb
)
Patch by pieterg: use SI units to display size of HDD (makes HDD 3% cheaper -> more...
author
Felix Domke
<
[email protected]
>
Sun, 26 Apr 2009 21:26:29 +0000
(23:26 +0200)
committer
Felix Domke
<
[email protected]
>
Sun, 26 Apr 2009 21:26:29 +0000
(23:26 +0200)
lib/python/Components/Harddisk.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index c34511db7f6771efb6e6148fd67c48f37d62f0c8..6148caac93e9146d3ad2c68da633ea9b8f6e7961 100755
(executable)
--- 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/10
24, cap%1024
)
+ return "%d.%03d GB" % (cap/10
00, cap%1000
)
def model(self):
if self.device[:2] == "hd":