A bit cleanup

This commit is contained in:
Andreas Bachlechner 2021-12-03 21:26:37 +01:00
parent d7815ca313
commit 7d1001a9ed
1 changed files with 18 additions and 23 deletions

View File

@ -313,8 +313,7 @@ sub amdgpu_cgi {
"#EEEE44", "#EEEE44",
); );
my $show_extended_plots = lc($amdgpu->{show_extended_plots} || "") eq "y" ? 1 : 0; my $number_of_sensor_values_in_use = 11;
my $number_of_sensor_values_in_use = $show_extended_plots ? 11 : 3;
if($number_of_sensor_values_in_use > $number_of_values_per_gpu_in_rrd) { if($number_of_sensor_values_in_use > $number_of_values_per_gpu_in_rrd) {