From: Darold Gilles Date: Mon, 14 Apr 2014 17:55:58 +0000 (+0200) Subject: Fix Sync time value in Checkpoints buffers report. Thanks to Herve Werner for the... X-Git-Tag: v5.1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2ac0a71e918c1a757372ba575efe969a98eb018;p=pgbadger Fix Sync time value in Checkpoints buffers report. Thanks to Herve Werner for the report. --- diff --git a/pgbadger b/pgbadger index b8234a9..d28cb6b 100644 --- a/pgbadger +++ b/pgbadger @@ -8460,6 +8460,8 @@ sub parse_query $overall_checkpoint{'peak'}{$cur_last_log_timestamp}{checkpoint_wbuffer} += $1; if ($6 > $overall_checkpoint{checkpoint_write}) { $overall_checkpoint{checkpoint_write} = $6; + } + if ($7 > $overall_checkpoint{checkpoint_sync}) { $overall_checkpoint{checkpoint_sync} = $7; } @@ -8511,6 +8513,8 @@ sub parse_query $overall_checkpoint{'peak'}{$cur_last_log_timestamp}{checkpoint_wbuffer} += $1; if ($6 > $overall_checkpoint{checkpoint_write}) { $overall_checkpoint{checkpoint_write} = $6; + } + if ($7 > $overall_checkpoint{checkpoint_sync}) { $overall_checkpoint{checkpoint_sync} = $7; }