Skip to content

Commit 5f69635

Browse files
authored
Merge pull request #805 from fairyfar/master
fixed typo and chart bug
2 parents 082e620 + 1b68b3b commit 5f69635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgbadger

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8194,7 +8194,7 @@ sub compute_query_graphs
81948194
$graph_data{"$action-min"} .= "[$t, " . ($a_dataavg{$action}{min}{"$rd"} || 0) . "],";
81958195
# Average query duration
81968196
$graph_data{"$action-2"} .= "[$t, " . sprintf("%.3f", ($a_dataavg{$action}{duration}{"$rd"} || 0) / ($a_dataavg{$action}{count}{"$rd"} || 1)) . "],";
8197-
} else {
8197+
} elsif ($action eq 'DDL') {
81988198
# Average query duration
81998199
$graph_data{"write"} .= "[$t, " . sprintf("%.3f", ($a_dataavg{write}{duration}{"$rd"} || 0) / ($a_dataavg{write}{count}{"$rd"} || 1)) . "],";
82008200
}
@@ -9518,7 +9518,7 @@ sub print_app_session
95189518
<h3 class="">Key values</h3>
95199519
<div class="well key-figures">
95209520
<ul>
9521-
<li><span class="figure">$main_app[0]</span> <span class="figure-label">Main Host</span></li>
9521+
<li><span class="figure">$main_app[0]</span> <span class="figure-label">Main Application</span></li>
95229522
<li><span class="figure">$total_count sessions</span> <span class="figure-label">Total</span></li>
95239523
</ul>
95249524
</div>

0 commit comments

Comments
 (0)