From c3ac21efd3cffc948f35527de415815644e67533 Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Wed, 28 May 2014 18:08:32 +0530 Subject: Add performance data to have unit type for brick and disk usage. Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1081375 Change-Id: I5f3f97275c6a4d8ad3a28c8d7add0a2ed3253283 Signed-off-by: Timothy Asir Reviewed-on: http://review.gluster.org/7912 Tested-by: Timothy Asir Reviewed-by: Shubhendu Tripathi --- plugins/check_disk_and_inode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/check_disk_and_inode.py b/plugins/check_disk_and_inode.py index 331edf1..b48c19c 100755 --- a/plugins/check_disk_and_inode.py +++ b/plugins/check_disk_and_inode.py @@ -150,7 +150,7 @@ def showDiskUsage(warn, crit, mountPaths, toListInode, usage=False, crit * inode['used'] / 100, inode['used']) else: - data = "%s=%.2f;%s;%s;0;%s" % ( + data = "%s=%.2f%%;%s;%s;0;%s" % ( disk['path'], disk['usePcent'], warn, @@ -158,7 +158,7 @@ def showDiskUsage(warn, crit, mountPaths, toListInode, usage=False, disk['size']) if toListInode: - data += " %s=%.2f;%s;%s;0;%s" % ( + data += " %s=%.2f%%;%s;%s;0;%s" % ( inode['path'], inode['usePcent'], warn, -- cgit