Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit dfeb195

Browse files
committed
Merge branch 'dmius-A006-fix' into 'master'
A006 template fixed See merge request postgres-ai-team/postgres-checkup!266
2 parents cc8a721 + 8e6bde7 commit dfeb195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pghrep/templates/A006.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Data collected: {{ DtFormat .timestamptz }}
77
{{ if (index .diffData "pg_settings") }}
88
▼ Setting | {{.hosts.master}} {{ range $skey, $host := .hosts.replicas }}| {{ $host }} {{ end }}
99
--------|-------{{ range $skey, $host := .hosts.replicas }}|-------- {{ end }}
10-
{{ range $key, $value := (index .diffData "pg_settings") }}{{ $key }} {{ range $key, $value := $value }} | {{ if (index $value "unit") }}{{ UnitValue (index $value "value") (index $value "unit") }}{{else}}{{ index $value "value" }}{{ end }}{{ end }}
10+
{{ range $key, $value := (index .diffData "pg_settings") }}{{ $key }} {{ range $key, $value := $value }} |{{ if and ( ne (index $value "value") "-1") ( ne (index $value "value") "0") (index $value "unit") }}{{ if (UnitValue (index $value "value") (index $value "unit")) }}{{ UnitValue (index $value "value") (index $value "unit") }}{{else}}{{(index $value "value")}} {{(index $value "unit") }}{{end}}{{else}}{{ index $value "value" }}{{ end }}{{ end }}
1111
{{ end }}
1212
{{ else }}
1313
No differences in `pg_settings` are found.

0 commit comments

Comments
 (0)