diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-23 13:34:12 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-23 13:34:12 +0100 |
| commit | 8c4fe03646258fda021159b147a999764bf02638 (patch) | |
| tree | 186952b387092463f0a5c9a7f55880e79e5b0b15 /lib/python/Components/Harddisk.py | |
| parent | 472d0fb82d59a7d7ffaa3e7041e0024c7ace0115 (diff) | |
| parent | f9259c898537d2c5f5722b9c6d8a9217ee5799ae (diff) | |
| download | enigma2-8c4fe03646258fda021159b147a999764bf02638.tar.gz enigma2-8c4fe03646258fda021159b147a999764bf02638.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components/Harddisk.py')
| -rwxr-xr-x | lib/python/Components/Harddisk.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 8664f79a..37905b7d 100755 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -230,9 +230,8 @@ class Harddisk: # we set the hdd into standby. def readStats(self): l = open("/sys/block/%s/stat" % self.device).read() - nr_read = int(l[:8].strip()) - nr_write = int(l[4*9:4*9+8].strip()) - return nr_read, nr_write + (nr_read, _, _, _, nr_write) = l.split()[:5] + return int(nr_read), int(nr_write) def startIdle(self): self.last_access = time.time() |
