socialnerds/hive
socialnerds
/
hive
Archived
1
0
Fork 0

was not fixed, maybe now..

This commit is contained in:
David 2012-05-20 12:42:45 +02:00
parent 6c527f7f4f
commit 4ad686bbd7
1 changed files with 3 additions and 2 deletions

View File

@ -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"