From 3a3cfc08d4f280dc27a77c23b54bb3536a965c21 Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Mon, 28 Apr 2014 21:41:30 +0200 Subject: [PATCH] Fix missing unit in Checkpoints Activity report when time value is empty. Thanks to Herve Werner for the report. --- pgbadger | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; } } } -- 2.40.0