diff options
author | darshan n <dnarayan@redhat.com> | 2015-02-05 16:40:57 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2015-08-16 22:58:30 -0700 |
commit | cee095666f1d120c7e7d0a0dba3085e870d0b6b5 (patch) | |
tree | 0166b424b52b9f8fe29c78f029e4c4ea1580c7b3 /plugins | |
parent | a833eaf6db603c0878c6f839631536785ea10110 (diff) |
PEP8: Fixed pep8 issues in plugins/check_vol_utilization.py
Change-Id: Iaac5ab54e3d5f9efbefadd8c3bb98209839e87bf
Signed-off-by: darshan n <dnarayan@redhat.com>
Reviewed-on: http://review.gluster.org/9593
Reviewed-by: Ramesh N <rnachimu@redhat.com>
Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/check_vol_utilization.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_vol_utilization.py b/plugins/check_vol_utilization.py index d909c9b..7d8743e 100755 --- a/plugins/check_vol_utilization.py +++ b/plugins/check_vol_utilization.py @@ -44,11 +44,11 @@ def showVolumeUtilization(vname, warnLevel, critLevel): "Volume Utilization Data\n") sys.exit(utils.PluginStatusCode.CRITICAL) volumeCapacity = computeVolumeStats(data) - #total size in KB + # total size in KB total_size = volumeCapacity['sizeTotal'] / BYTES_IN_KB - #Available free size in KB + # Available free size in KB free_size = volumeCapacity['sizeFree'] / BYTES_IN_KB - #used size in KB + # used size in KB used_size = volumeCapacity['sizeUsed'] / BYTES_IN_KB vol_utilization = (used_size / total_size) * 100 |