From 10b1168044927fd45b4a777f31039b6cf9ce4c64 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 8 Feb 2026 11:13:39 -0600 Subject: [PATCH] refactor: round latency graph values to 1 decimal place Display latency values with single decimal precision (e.g., 114.1ms) for improved readability in graphs. This ensures consistency between the raw chart data and tooltip formatting. --- lib/towerops_web/live/graph_live/show.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/towerops_web/live/graph_live/show.ex b/lib/towerops_web/live/graph_live/show.ex index 80c272ea..e1b880be 100644 --- a/lib/towerops_web/live/graph_live/show.ex +++ b/lib/towerops_web/live/graph_live/show.ex @@ -415,7 +415,7 @@ defmodule ToweropsWeb.GraphLive.Show do defp latency_check_to_chart_point(check) do %{ x: DateTime.to_unix(check.checked_at, :millisecond), - y: check.response_time_ms + y: Float.round(check.response_time_ms, 1) } end