From: Darold Gilles Date: Fri, 15 Jan 2016 21:49:39 +0000 (+0100) Subject: Fix Histogram of session times when there is no data. X-Git-Tag: v7.3~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c48d7b3850243470eba8724ea62cd630d0de172;p=pgbadger Fix Histogram of session times when there is no data. --- diff --git a/pgbadger b/pgbadger index 2a2a55e..41eba87 100755 --- a/pgbadger +++ b/pgbadger @@ -5329,12 +5329,13 @@ sub print_histogram_session_times $most_range = "> $histogram_session_time[-1]ms"; $most_range_value = $overall_stat{histogram}{session_time}{"-1"}; } + + $drawn_graphs{histogram_session_times_graph} = &jqplot_duration_histograph($graphid++, 'graph_histogram_session_times', 'Sessions', \@histogram_session_time, %data); } else { $histogram_info = qq{$NODATA}; + $drawn_graphs{histogram_session_times_graph} = qq{$NODATA}; } - $drawn_graphs{histogram_session_times_graph} = &jqplot_duration_histograph($graphid++, 'graph_histogram_session_times', 'Sessions', \@histogram_session_time, %data); - $most_range_value = &comma_numbers($most_range_value) if ($most_range_value); print $fh qq{