Use new graph size large in amdenergy.

This commit is contained in:
Andreas Bachlechner 2022-02-07 09:38:28 +01:00
parent d86820370c
commit baef296ac8
1 changed files with 3 additions and 5 deletions

View File

@ -660,19 +660,17 @@ sub amdenergy_cgi {
push(@tmpz, "AREA:wrongdata#$colors->{gap}:");
push(@CDEF, "CDEF:wrongdata=allvalues,UN,INF,UNKN,IF");
}
($width, $height) = split('x', $config->{graph_size}->{'main'});
my $graph_size_name = "large";
($width, $height) = split('x', $config->{graph_size}->{$graph_size_name});
if($silent =~ /imagetag/) {
($width, $height) = split('x', $config->{graph_size}->{remote}) if $silent eq "imagetag";
($width, $height) = split('x', $config->{graph_size}->{main}) if $silent eq "imagetagbig";
($width, $height) = split('x', $config->{graph_size}->{$graph_size_name}) if $silent eq "imagetagbig";
@tmp = @tmpz;
push(@tmp, "COMMENT: \\n");
push(@tmp, "COMMENT: \\n");
push(@tmp, "COMMENT: \\n");
}
$height *= 1.2;
$width += 300;
my @def_sensor_average;
my $cdef_sensor_allvalues = "CDEF:allvalues=";
my $sum_of_values = 0;