From fd7a6ddba581d4b56264a0a3111fc7bc56353f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 20 Oct 2023 16:17:24 +0200 Subject: [PATCH] Improve formatting of CPU usage --- benchmarks/src/postprocessing/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/src/postprocessing/monitor.py b/benchmarks/src/postprocessing/monitor.py index bc5da8783..98e20d68d 100644 --- a/benchmarks/src/postprocessing/monitor.py +++ b/benchmarks/src/postprocessing/monitor.py @@ -131,11 +131,11 @@ def render_node_per_cpu_pct_utilization(figure: Figure, df: pd.DataFrame): key = f"cpu_{i}" data[key] = cpu / 100.0 data[f"{key}_x"] = cpu.index - tooltips.append((f"CPU #{i}", f"@{key}")) + tooltips.append((f"CPU #{i}", f"@{key}{{0.00}}")) data["cpu_mean"] = cpu_mean / 100.0 data["cpu_mean_x"] = cpu_mean.index - tooltips.append(("CPU avg.", "@cpu_mean")) + tooltips.append(("CPU avg.", "@cpu_mean{0.00}")) figure.add_tools(HoverTool(tooltips=tooltips))