Skip to content

Commit

Permalink
Improve formatting of CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Nov 10, 2023
1 parent b362450 commit fd7a6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/src/postprocessing/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit fd7a6dd

Please sign in to comment.