From dcb15dc1e6bda61611f7fd32c1e064fb85951d42 Mon Sep 17 00:00:00 2001 From: Timothy Asir Jeyasingh Date: Tue, 24 Jun 2014 14:36:50 +0530 Subject: Fix pep8 errors Change-Id: I0d41725a02636228bc613b40c1b4d2d57a35e3e3 Signed-off-by: Timothy Asir Jeyasingh Reviewed-on: http://review.gluster.org/8159 Tested-by: Timothy Asir Reviewed-by: Shubhendu Tripathi --- plugins/check_vol_utilization.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/check_vol_utilization.py') diff --git a/plugins/check_vol_utilization.py b/plugins/check_vol_utilization.py index 8500df0..2593ca7 100755 --- a/plugins/check_vol_utilization.py +++ b/plugins/check_vol_utilization.py @@ -33,16 +33,16 @@ def showVolumeUtilization(vname, warnLevel, critLevel): "Volume Utilization Data\n") sys.exit(utils.PluginStatusCode.UNKNOWN) #################################################################### -#statvfs.frsize * statvfs.f_blocks# Size of filesystem in bytes # -#statvfs.frsize * statvfs.f_bfree # Actual number of free bytes # -#statvfs.frsize * statvfs.f_bavail# Number of free bytes that # -#ordinary users are allowed to use (excl. reserved space # +# statvfs.frsize * statvfs.f_blocks# Size of filesystem in bytes # +# statvfs.frsize * statvfs.f_bfree # Actual number of free bytes # +# statvfs.frsize * statvfs.f_bavail# Number of free bytes that # +# ordinary users are allowed to use (excl. reserved space # #################################################################### - #total size in KB + # total size in KB total_size = (buf['f_bsize'] * buf['f_blocks']) / 1024.0 - #Available free size in KB + # Available free size in KB free_size = (buf['f_bsize'] * buf['f_bavail']) / 1024.0 - #used size in KB + # used size in KB used_size = total_size - ((buf['f_bsize'] * buf['f_bfree']) / 1024.0) vol_utilization = (used_size / total_size) * 100 perfLines = [] @@ -110,6 +110,6 @@ def parse_input(): if __name__ == '__main__': args = parse_input() - #check the volume status before getting the volume utilization + # check the volume status before getting the volume utilization check_volume_status(args.volume) showVolumeUtilization(args.volume, args.warning, args.critical) -- cgit