Qos Service Graphen zeigen jetzt auch Werte

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@844 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2007-08-27 15:41:44 +00:00
parent 57cb97757d
commit 359179f368

View File

@@ -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++;
}
}