summaryrefslogtreecommitdiffstats
path: root/pgcli/pyev.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 04:38:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 04:38:03 +0000
commitfa11d0da51045077b543d42a1ab661c4a20b5127 (patch)
treeaac9e87c59cb8bc7e3cd429e9200c3ca017cb591 /pgcli/pyev.py
parentAdding upstream version 3.5.0. (diff)
downloadpgcli-fa11d0da51045077b543d42a1ab661c4a20b5127.tar.xz
pgcli-fa11d0da51045077b543d42a1ab661c4a20b5127.zip
Adding upstream version 4.0.1.upstream/4.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pgcli/pyev.py')
-rw-r--r--pgcli/pyev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/pyev.py b/pgcli/pyev.py
index 202947f..2886c9c 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(