From 56a9b210954bc7b7d47fef9d621a3b885dfd431e Mon Sep 17 00:00:00 2001 From: Andreas Bachlechner <62039342+bachandi@users.noreply.github.com> Date: Mon, 10 Jan 2022 20:39:28 +0100 Subject: [PATCH] Fix nvme non extended plot version. The selection of plots that need alternative scaling was not set for the non extended version of the nvme plots. --- lib/nvme.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvme.pm b/lib/nvme.pm index cfa337b..d3a6c2b 100644 --- a/lib/nvme.pm +++ b/lib/nvme.pm @@ -462,7 +462,7 @@ sub nvme_cgi { my @y_axis_titles = ((lc($config->{temperature_scale}) eq "f" ? "Fahrenheit" : "Celsius"), "Percent (%)", "Percent (%)", "bytes", "Errors", "Counts"); my @value_transformations = ((lc($config->{temperature_scale}) eq "f" ? ",9,*,5,/,32,+" : ""), "", "", ",512000,*", "", ""); my @legend_labels = ("%2.0lf", "%4.0lf%%", "%4.0lf%%", "%7.3lf%s", "%4.0lf%s", "%4.0lf%s"); - my @alt_axis_scaling = (0, 0, 0, 1, 0, 0); + my @alt_axis_scaling = $show_extended_plots ? (0, 0, 0, 1, 0, 0) : (0, 0, 0); my @plot_order = $show_extended_plots ? (0, 3, 1, 2, 4, 5) : (0, 1, 2); # To rearange the plots my $main_smart_plots = $show_extended_plots ? 2 : 1; # Number of smart plots on the left side.