was not fixed, maybe now..
This commit is contained in:
parent
6c527f7f4f
commit
4ad686bbd7
|
@ -40,7 +40,8 @@ class diskmon(object):
|
|||
|
||||
try: self.part[2]
|
||||
except IndexError:
|
||||
self.part.append("not mounted")
|
||||
for range(4):
|
||||
self.part.append("not mounted")
|
||||
|
||||
self.mtab.close()
|
||||
|
||||
|
@ -54,7 +55,7 @@ if __name__ == "__main__":
|
|||
diskmoninstance.gather()
|
||||
#print diskmoninstance.partitions
|
||||
for partition in diskmoninstance.partitions:
|
||||
print "device:\t\t" + str(partition[0]) + "\nuuid:\t\t" + str(partition[1]) + "\nmountpoint:\t" + str(partition[2]) + "\nfilesystem:\t" + str(partition[3]) + "\nblocksize:\t" + str(partition[4]) + "\ntotal blocks:\t" + str(partition[5]) + "\nfree blocks:\t" + str(partition[6])
|
||||
print "device:\t\t" + str(partition[0]) + "\nuuid:\t\t" + str(partition[1]) + "\nmountpoint:\t" + str(partition[2]) + "\nfilesystem:\t" + str(partition[3]) + "\nblocksize:\t" + str(partition[4]) + "\ntotal blocks:\t" + str(partition[5]) + "\nfree blocks:\t" + str(partition[6]) + "\n"
|
||||
|
||||
|
||||
|
||||
|
|
Reference in New Issue