diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-09 14:44:58 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-09 14:44:58 +0000 |
| commit | a1e522271eb1a17930cdb0dddf11876e827f49a0 (patch) | |
| tree | 2f084548beb61dc348cfdfca4b88f5936834cda8 /lib/python | |
| parent | abc3df95272df099485bfe081dcb8acead013eab (diff) | |
| download | enigma2-a1e522271eb1a17930cdb0dddf11876e827f49a0.tar.gz enigma2-a1e522271eb1a17930cdb0dddf11876e827f49a0.zip | |
add hddcount
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/Harddisk.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index a6389770..b51d7a67 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -169,6 +169,12 @@ class HarddiskManager: if hddNum > 8: break + def HDDCount(self): + cnt = 0 + for hd in self.hdd: + cnt = cnt + 1 + return cnt + def HDDList(self): list = [ ] for hd in self.hdd: |
