mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-15 11:30:07 +00:00
fix(ui): Inconsistent time values in UI (#1452)
* fix(ui): Truncate displayed time values * refactor(ui): Use util function * chore(ui): Regenerate static assets --------- Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
@@ -281,8 +281,8 @@ const pageResponseTimeRange = computed(() => {
|
||||
}
|
||||
|
||||
if (!hasData) return 'N/A'
|
||||
const minMs = Math.round(min / 1000000)
|
||||
const maxMs = Math.round(max / 1000000)
|
||||
const minMs = Math.trunc(min / 1000000)
|
||||
const maxMs = Math.trunc(max / 1000000)
|
||||
// If min and max are the same, show single value
|
||||
if (minMs === maxMs) {
|
||||
return `${minMs}ms`
|
||||
|
||||
Reference in New Issue
Block a user