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:
abc3df9
)
add hddcount
author
Ronny Strutz
<
[email protected]
>
Wed, 9 Nov 2005 14:44:58 +0000
(14:44 +0000)
committer
Ronny Strutz
<
[email protected]
>
Wed, 9 Nov 2005 14:44:58 +0000
(14:44 +0000)
lib/python/Components/Harddisk.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index a638977061674e19ef18aa7fde4754fbe4c1f7b7..b51d7a6736a6899524aa34e7af8961173f0be0b0 100644
(file)
--- 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: