]> granicus.if.org Git - pgbadger/commitdiff
Fix an other average size of temporary file decimal limit
authorDarold <gilles@darold.net>
Fri, 20 Apr 2012 12:43:00 +0000 (14:43 +0200)
committerDarold <gilles@darold.net>
Fri, 20 Apr 2012 12:43:00 +0000 (14:43 +0200)
pgbadger

index f9357021c4f520f91e7774e71bb5363347930478..09b0ccc09ea47fca0cc4638060d84ffbf2b72289 100755 (executable)
--- 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{
 <li>Number temporary file: $tempfile_info{count}</li>
 <li>Max size of temporary file: $fmt_temp_maxsise</li>