show free hdd space in aboutbox
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 2 Sep 2005 05:55:10 +0000 (05:55 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 2 Sep 2005 05:55:10 +0000 (05:55 +0000)
lib/python/Screens/About.py

index de9d693..f6b1413 100644 (file)
@@ -16,7 +16,7 @@ class About(Screen):
 
                self["hdd"] = Label("Detected HDD:")
                hdd = Harddisk(0)
 
                self["hdd"] = Label("Detected HDD:")
                hdd = Harddisk(0)
-               self["hddA"] = Label("%s (%s)" % (hdd.model(), hdd.capacity()))
+               self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free()))
 
                self["actions"] = ActionMap(["SetupActions"], 
                        {
 
                self["actions"] = ActionMap(["SetupActions"], 
                        {