diff options
author | Daniel Kukula <904179+dkuku@users.noreply.github.com> | 2023-05-24 23:40:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-25 00:40:11 +0200 |
commit | 6b868bbfe831678d10c7535eb2e7356fcfb42068 (patch) | |
tree | c0d730f801f742e2670e199c2183dd2abb425887 /pgcli | |
parent | c2f2f5abb2e1562ef547b8b8114e150912802ef2 (diff) |
Update pyev.py (#1406)
fix typos
Diffstat (limited to 'pgcli')
-rw-r--r-- | pgcli/pyev.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/pyev.py b/pgcli/pyev.py index 202947f4..2886c9c8 100644 --- a/pgcli/pyev.py +++ b/pgcli/pyev.py @@ -146,7 +146,7 @@ class Visualizer: elif self.explain.get("Max Rows") < plan["Actual Rows"]: self.explain["Max Rows"] = plan["Actual Rows"] - if not self.explain.get("MaxCost"): + if not self.explain.get("Max Cost"): self.explain["Max Cost"] = plan["Actual Cost"] elif self.explain.get("Max Cost") < plan["Actual Cost"]: self.explain["Max Cost"] = plan["Actual Cost"] @@ -171,7 +171,7 @@ class Visualizer: return self.warning_format("%.2f ms" % value) elif value < 60000: return self.critical_format( - "%.2f s" % (value / 2000.0), + "%.2f s" % (value / 1000.0), ) else: return self.critical_format( |