]> granicus.if.org Git - pgbadger/commitdiff
Fix missing unit in Checkpoints Activity report when time value is empty. Thanks...
authorDarold Gilles <gilles@darold.net>
Mon, 28 Apr 2014 19:41:30 +0000 (21:41 +0200)
committerDarold Gilles <gilles@darold.net>
Mon, 28 Apr 2014 19:41:30 +0000 (21:41 +0200)
pgbadger

index ad3c6c30aeecd6538eec2e287db05d3b13f3cded..bd053c234e279c723656e36f201d224ae2eb475d 100644 (file)
--- a/pgbadger
+++ b/pgbadger
@@ -4723,15 +4723,15 @@ $drawn_graphs{checkpointfiles_graph}
                                        "</td><td>" . &comma_numbers($cainf{sync_avg}) . 's' .
                                        "</td></tr>";
                        } else {
-                               $buffers .= "<td>0</td><td>0</td><td>0</td><td>0</td></tr>";
-                               $files .= "<td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr>";
+                               $buffers .= "<td>0</td><td>0s</td><td>0s</td><td>0s</td></tr>";
+                               $files .= "<td>0</td><td>0</td><td>0</td><td>0s</td><td>0s</td><td>0s</td></tr>";
                        }
                        if (exists $cinf{warning}) {
                                $warnings .= "<td>" . &comma_numbers($cinf{warning}) . "</td><td>" .
                                        &comma_numbers(sprintf( "%.2f", ($cinf{warning_seconds} || 0) / ($cinf{warning} || 1))) .
                                         "s</td></tr>";
                        } else {
-                               $warnings .= "<td>0</td><td>0</td></tr>";
+                               $warnings .= "<td>0</td><td>0s</td></tr>";
                        }
                }
        }