From: Darold Date: Fri, 20 Apr 2012 12:43:00 +0000 (+0200) Subject: Fix an other average size of temporary file decimal limit X-Git-Tag: v3.2~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c22a04f7606a14c1c9de94c97925d84201d6fda3;p=pgbadger Fix an other average size of temporary file decimal limit --- diff --git a/pgbadger b/pgbadger index f935702..09b0ccc 100755 --- a/pgbadger +++ b/pgbadger @@ -912,7 +912,7 @@ sub dump_as_html }; if ($tempfile_info{count}) { my $fmt_temp_maxsise = &comma_numbers($tempfile_info{maxsize}) || 0; - my $fmt_temp_avsize = &comma_numbers($tempfile_info{maxsize}/$tempfile_info{count}); + my $fmt_temp_avsize = &comma_numbers(sprintf("%.2f", $tempfile_info{maxsize}/$tempfile_info{count})); print $fh qq{
  • Number temporary file: $tempfile_info{count}
  • Max size of temporary file: $fmt_temp_maxsise