"--color", "SHADEB".$color{"color19"},
"--color", "BACK".$color{"color21"},
"-t $tr{'cpu usage per'} $tr{$period}",
+ "DEF:iowait=$rrdlog/cpu.rrd:iowait:AVERAGE",
"DEF:user=$rrdlog/cpu.rrd:user:AVERAGE",
"DEF:system=$rrdlog/cpu.rrd:system:AVERAGE",
"DEF:idle=$rrdlog/cpu.rrd:idle:AVERAGE",
- "DEF:iowait=$rrdlog/cpu.rrd:iowait:AVERAGE",
- "AREA:user".$color{"color11"}.":$tr{'user cpu usage'}",
+ "AREA:iowait".$color{"color14"}.":$tr{'iowait'}",
+ "STACK:user".$color{"color11"}.":$tr{'user cpu usage'}",
"STACK:system".$color{"color13"}.":$tr{'system cpu usage'}",
- "STACK:idle".$color{"color12"}.":$tr{'idle cpu usage'}",
- "STACK:iowait".$color{"color14"}.":$tr{'iowait'}\\j",
+ "STACK:idle".$color{"color12"}.":$tr{'idle cpu usage'}\\j",
"COMMENT: \\j",
"COMMENT:$tr{'maximal'}",
"COMMENT:$tr{'average'}",
foreach my $graphname (@graphs) {
- if ($graphname == "lq" )
+ if ($graphname eq "lq" )
{
&Graphs::updatelqgraph("day");
&Graphs::updatelqgraph("week");
}
else
{
- &Graphs::updateifgraph ($graphname, "day");
- &Graphs::updateifgraph ($graphname, "week");
- &Graphs::updateifgraph ($graphname, "month");
- &Graphs::updateifgraph ($graphname, "year");
+ &Graphs::updateifgraph($graphname, "day");
+ &Graphs::updateifgraph($graphname, "week");
+ &Graphs::updateifgraph($graphname, "month");
+ &Graphs::updateifgraph($graphname, "year");
}
&Header::openbox('100%', 'center', "$graphname $Lang::tr{'graph'}");