]> granicus.if.org Git - pgbadger/commitdiff
Fix Sync time value in Checkpoints buffers report. Thanks to Herve Werner for the...
authorDarold Gilles <gilles@darold.net>
Mon, 14 Apr 2014 17:55:58 +0000 (19:55 +0200)
committerDarold Gilles <gilles@darold.net>
Mon, 14 Apr 2014 17:55:58 +0000 (19:55 +0200)
pgbadger

index b8234a9911cd1fe139a10d730a11b4ebabfcf62c..d28cb6b4d672c03b259b8a5cd68513d272f7f325 100644 (file)
--- 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;
                }