From: Darold Gilles Date: Mon, 28 Apr 2014 19:41:30 +0000 (+0200) Subject: Fix missing unit in Checkpoints Activity report when time value is empty. Thanks... X-Git-Tag: v5.1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a3cfc08d4f280dc27a77c23b54bb3536a965c21;p=pgbadger Fix missing unit in Checkpoints Activity report when time value is empty. Thanks to Herve Werner for the report. --- diff --git a/pgbadger b/pgbadger index ad3c6c3..bd053c2 100644 --- a/pgbadger +++ b/pgbadger @@ -4723,15 +4723,15 @@ $drawn_graphs{checkpointfiles_graph} "" . &comma_numbers($cainf{sync_avg}) . 's' . ""; } else { - $buffers .= "0000"; - $files .= "000000"; + $buffers .= "00s0s0s"; + $files .= "0000s0s0s"; } if (exists $cinf{warning}) { $warnings .= "" . &comma_numbers($cinf{warning}) . "" . &comma_numbers(sprintf( "%.2f", ($cinf{warning_seconds} || 0) / ($cinf{warning} || 1))) . "s"; } else { - $warnings .= "00"; + $warnings .= "00s"; } } }