From 6b868bbfe831678d10c7535eb2e7356fcfb42068 Mon Sep 17 00:00:00 2001 From: Daniel Kukula <904179+dkuku@users.noreply.github.com> Date: Wed, 24 May 2023 23:40:11 +0100 Subject: [PATCH] Update pyev.py (#1406) fix typos --- pgcli/pyev.py | 4 ++-- 1 file 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(