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.
This commit is contained in:
parent
16b833d077
commit
10b1168044
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue