From 359179f368b37d9e5746381730b09289742c5162 Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Mon, 27 Aug 2007 15:41:44 +0000 Subject: [PATCH] Qos Service Graphen zeigen jetzt auch Werte git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@844 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- config/cfgroot/graphs.pl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index 97c3a7a3e7..9d5d9cec66 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -536,6 +536,11 @@ sub overviewgraph { "--color", "SHADEA".$color{"color19"}, "--color", "SHADEB".$color{"color19"}, "--color", "BACK".$color{"color21"}, + "COMMENT:$Lang::tr{'caption'}\\t\\t\\t\\t ", + "COMMENT:$Lang::tr{'maximal'}", + "COMMENT:$Lang::tr{'average'}", + "COMMENT:$Lang::tr{'minimal'}", + "COMMENT:$Lang::tr{'current'}\\j", $description ); open( FILE, "< $classfile" ) or die "Unable to read $classfile"; @@ -550,10 +555,15 @@ sub overviewgraph { push(@command, "DEF:$classline[1]=/var/log/rrd/class_$qossettings{'CLASSPRFX'}-$classline[1]_$qossettings{'DEV'}.rrd:bytes:AVERAGE"); if ($count eq "1") { - push(@command, "AREA:$classline[1]$color:Klasse $classline[1] - $classline[8]\\j"); + push(@command, "AREA:$classline[1]$color:Klasse $classline[1] -".sprintf("%15s",$classline[8])); } else { - push(@command, "STACK:$classline[1]$color:Klasse $classline[1] - $classline[8]\\j"); + push(@command, "STACK:$classline[1]$color:Klasse $classline[1] -".sprintf("%15s",$classline[8])); + } + push(@command, "GPRINT:$classline[1]:MAX:%5.2lf"); + push(@command, "GPRINT:$classline[1]:AVERAGE:%5.2lf"); + push(@command, "GPRINT:$classline[1]:MIN:%5.2lf"); + push(@command, "GPRINT:$classline[1]:LAST:%5.2lf\\j"); $count++; } } -- 2.39.2