summaryrefslogtreecommitdiffstats
path: root/templates/check_interfaces.php
diff options
context:
space:
mode:
authorndarshan <dnarayan@redhat.com>2014-03-14 15:07:03 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:36 +0530
commit522783ba9afebcd82869c57090feb8258e52915b (patch)
tree5d4ca6ff98895df341de4838c5b48c902160a8d4 /templates/check_interfaces.php
parent795fc58ef57127f257ea06c8c77ff8fba0662a4e (diff)
Template: Fixed the issues in physical graph templates
Fixed issue with memory template, other templates to have graphs of same size for rendering in ui. Change-Id: Iacfe7e16b16e6a6cccb104dea9fed412b3f533c3 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/11 Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'templates/check_interfaces.php')
-rw-r--r--templates/check_interfaces.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/check_interfaces.php b/templates/check_interfaces.php
index 96226e9..1005382 100644
--- a/templates/check_interfaces.php
+++ b/templates/check_interfaces.php
@@ -39,15 +39,18 @@ for ($i = 0; $i < $interface_count; $i++) {
$ds_name[$index+1] = "$interface:: Receiving and ";
$def[$index+1] = rrd::def("value1", $RRDFILE[$index+2], $DS[$index+2], "AVERAGE");
$def[$index+1] .= rrd::cdef ("value2","value1,125000,/");
- $def[$index+1] .= rrd::line1("value2", "#008000", $data_type);
- $def[$index+1] .= rrd::gprint ("value2", array("LAST", "AVERAGE", "MAX"), "%10.4lf Gbps");
+ $def[$index+1] .= rrd::line1("value2", "#008000", "Receiving ");
+ $def[$index+1] .= rrd::gprint ("value2", array("LAST", "AVERAGE", "MAX"), "%6.4lf Gbps");
list ($interface, $data_type) = explode (".", $name[$index+3]);
$interface = str_replace(";","",$interface);
$ds_name[$index+1] .= "Transmission speed";
$def[$index+1] .= rrd::def ("value3", $RRDFILE[$index+3], $DS[$index+3], "AVERAGE");
$def[$index+1] .= rrd::cdef ("value4","value3,125000,/");
- $def[$index+1] .= rrd::line1 ("value4", "#0000ff", $data_type) ;
- $def[$index+1] .= rrd::gprint ("value4", array("LAST", "AVERAGE", "MAX"), "%10.4lf Gbps");
+ $def[$index+1] .= rrd::line1 ("value4", "#0000ff", "Transmission ") ;
+ $def[$index+1] .= rrd::gprint ("value4", array("LAST", "AVERAGE", "MAX"), "%6.4lf Gbps");
+ $def[$index+1] .= rrd::comment (" \\n");
+ $def[$index+1] .= rrd::comment (" \\n");
+ $def[$index+1] .= rrd::comment (" \\n");
}
?>