From: Darold Gilles Date: Thu, 10 Apr 2014 16:56:27 +0000 (+0200) Subject: Add unit (seconds) to checkpoint write/sync time in the checkpoints activity report. X-Git-Tag: v5.1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a73647f4306fc15911af2c7173a3c83c32fb8f6;p=pgbadger Add unit (seconds) to checkpoint write/sync time in the checkpoints activity report. --- diff --git a/pgbadger b/pgbadger index 02c7e05..1cb1b5b 100755 --- a/pgbadger +++ b/pgbadger @@ -4619,16 +4619,16 @@ $drawn_graphs{checkpointfiles_graph} } if (scalar keys %cinf) { $buffers .= "" . &comma_numbers($cinf{wbuffer}) . - "" . &comma_numbers($cinf{write}) . - "" . &comma_numbers($cinf{sync}) . - "" . &comma_numbers($cinf{total}) . + "" . &comma_numbers($cinf{write}) . 's' . + "" . &comma_numbers($cinf{sync}) . 's' . + "" . &comma_numbers($cinf{total}) . 's' . ""; $files .= "" . &comma_numbers($cinf{file_added}) . "" . &comma_numbers($cinf{file_removed}) . "" . &comma_numbers($cinf{file_recycled}) . - "" . &comma_numbers($cainf{sync_files}) . - "" . &comma_numbers($cainf{sync_longest}) . - "" . &comma_numbers($cainf{sync_avg}) . + "" . &comma_numbers($cainf{sync_files}) . 's' . + "" . &comma_numbers($cainf{sync_longest}) . 's' . + "" . &comma_numbers($cainf{sync_avg}) . 's' . ""; } else { $buffers .= "0000"; @@ -4637,7 +4637,7 @@ $drawn_graphs{checkpointfiles_graph} if (exists $cinf{warning}) { $warnings .= "" . &comma_numbers($cinf{warning}) . "" . &comma_numbers(sprintf( "%.2f", ($cinf{warning_seconds} || 0) / ($cinf{warning} || 1))) . - ""; + "s"; } else { $warnings .= "00"; }