diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-08-30 02:08:41 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-08-30 02:08:41 +0000 |
| commit | 9a83b69091aa85a9f335c6544a3a943e25450f6d (patch) | |
| tree | 9d4276d9cb2257a425aa6213e4fcce5f169abf01 /lib/python/Components/Harddisk.py | |
| parent | b5eaeb4432e0b881f3348a8abd2cb1c5f6b082ce (diff) | |
| download | enigma2-9a83b69091aa85a9f335c6544a3a943e25450f6d.tar.gz enigma2-9a83b69091aa85a9f335c6544a3a943e25450f6d.zip | |
fixes
Diffstat (limited to 'lib/python/Components/Harddisk.py')
| -rw-r--r-- | lib/python/Components/Harddisk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 6283f51c..c50f0b8c 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -155,13 +155,14 @@ class HarddiskManager: list = [ ] for hd in self.hdd: cap = hd.capacity() / 1000 * 512 / 1000 + print cap hdd = hd.model() + " (" if hd.index & 1: hdd += "slave" else: hdd += "master" if cap > 0: - hdd += ", %d,%d GB" % (cap/1024, cap%1024) + hdd += ", %d.%03d GB" % (cap/1024, cap%1024) hdd += ")" print hdd |
