summaryrefslogtreecommitdiffstats
path: root/templates/check_disk_and_inode.php
diff options
context:
space:
mode:
authorTimothy Asir <tjeyasin@redhat.com>2014-05-06 16:26:09 +0530
committerTimothy Asir <tim.gluster@gmail.com>2014-05-16 02:45:38 -0700
commitc910f8e3c94c49e22afd49bf8fb367ca37892b73 (patch)
tree50d6cb7bcbbcf9f0c1222fee930c70e5cf596afa /templates/check_disk_and_inode.php
parent4d0f3aadf8bd2606e0e33c0d10630293461c0520 (diff)
Add total usage into disk usage graph vertical label
Change-Id: I2f3b18c730ffd3ab142763433e0c75f9214eef1e Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7685 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
Diffstat (limited to 'templates/check_disk_and_inode.php')
-rw-r--r--templates/check_disk_and_inode.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/check_disk_and_inode.php b/templates/check_disk_and_inode.php
index 2dd253f..6146a6a 100644
--- a/templates/check_disk_and_inode.php
+++ b/templates/check_disk_and_inode.php
@@ -29,7 +29,8 @@ foreach ($this->DS as $KEY=>$VAL) {
$name[$KEY] = "Disk Utilization for mount: " . $VAL['NAME'];
# set graph labels
- $opt[$KEY] = "--vertical-label \"% Usage\" --lower-limit 0 --upper-limit 100 --title \"$name[$KEY]\" ";
+ $max_limit = $VAL['MAX'];
+ $opt[$KEY] = "--vertical-label \"%(Total: $max_limit GB) \" --lower-limit 0 --upper-limit 100 --title \"$name[$KEY]\" ";
# Graph Definitions
$def[$KEY] = rrd::def( "var1", $VAL['RRDFILE'], $VAL['DS'], "AVERAGE" );