From c7f8e973022bb64b75fc0c6a9b71c11d1bac624a Mon Sep 17 00:00:00 2001 From: David Date: Sun, 20 May 2012 18:09:51 +0200 Subject: [PATCH] test push --- monitor/disk_display.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/monitor/disk_display.py b/monitor/disk_display.py index ba067d3..9563de5 100755 --- a/monitor/disk_display.py +++ b/monitor/disk_display.py @@ -1,15 +1,14 @@ -#!/usr/bin/python2 +#!/usr/bin/python2 -B """ simple display to show results of disk.py """ import disk -#output if __name__ == "__main__": diskmoninstance = disk.diskmon() for partition in diskmoninstance.partitions: - print "device:\t\t" + str(partition["device"]) + \ - "\nuuid:\t\t" + str(partition["uuid"]) + print "device\t\t:" + str(partition["device"]) + \ + "\nuuid\t\t:" + str(partition["uuid"]) if partition.has_key("mountpoint"): print "mountpoint:\t" + str(partition["mountpoint"]) + \ "\nfilesystem:\t" + str(partition["filesystem"]) + \ @@ -18,3 +17,5 @@ if __name__ == "__main__": "\nfree blocks:\t" + str(partition["free blocks"]) + "\n" else: print "\n" + +#end of file