fix(activity_feed): show integer milliseconds without decimal point

This commit is contained in:
Graham McIntire 2026-03-06 12:11:15 -06:00
parent 73daad48a5
commit 70718a53dc
No known key found for this signature in database

View file

@ -327,7 +327,7 @@ defmodule Towerops.ActivityFeed do
site_name: nil,
summary: "Preseem sync #{status_label}",
detail:
"#{row.records_synced || 0} records synced#{if row.duration_ms, do: " in #{row.duration_ms}ms", else: ""}",
"#{row.records_synced || 0} records synced#{if row.duration_ms, do: " in #{Decimal.to_integer(Decimal.round(row.duration_ms, 0))}ms", else: ""}",
severity: sync_severity(row.status),
icon: "hero-arrow-path",
link: nil