1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-07-15 01:34:18 +02:00

Avoid redundant unit info when displaying I/O stats

This commit is contained in:
Pierre GIRAUD
2025-03-14 13:16:20 +00:00
parent 1705248022
commit 3d56cbb094

View File

@ -945,7 +945,7 @@ CREATE INDEX CONCURRENTLY <%= db_ident_quote( "explain_depesz_com_hint_${id}_${n
<h1>I/O stats</h1>
<ul>
% if ( $buf_r ) {
<li>Query read <%= humanize_size( 8192 * $buf_r ) %> bytes from disk (or system disk cache)
<li>Query read <%= humanize_size( 8192 * $buf_r ) %> from disk (or system disk cache)
% my $t = $explain->total_buffers->data->{'timings'}->{'read'};
% if ( $t ) {
in <%= commify_number( $t) %> ms, at ~ <%= humanize_size( 8192 * $buf_r * 1000 / $t ) %>/s
@ -953,7 +953,7 @@ CREATE INDEX CONCURRENTLY <%= db_ident_quote( "explain_depesz_com_hint_${id}_${n
</li>
% }
% if ( $buf_w ) {
<li>Query wrote <%= humanize_size( 8192 * $buf_w ) %> bytes to disk
<li>Query wrote <%= humanize_size( 8192 * $buf_w ) %> to disk
% my $t = $explain->total_buffers->data->{'timings'}->{'write'};
% if ( $t ) {
in <%= commify_number( $t) %> ms, at ~ <%= humanize_size( 8192 * $buf_w * 1000 / $t ) %>/s