From a54e4c2c223057e2d1cc528ae9b04d66ace03f80 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Wed, 27 Nov 2024 20:51:20 -0500 Subject: [PATCH] fix(ui): show proper duration --- templates/components/messages.html.twig | 2 +- templates/components/snapshot.html.twig | 4 ++-- templates/detail.html.twig | 4 ++-- templates/schedule.html.twig | 2 +- templates/statistics.html.twig | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/components/messages.html.twig b/templates/components/messages.html.twig index e37f508..fa10f7d 100644 --- a/templates/components/messages.html.twig +++ b/templates/components/messages.html.twig @@ -47,7 +47,7 @@ {{ message.transport }} - {{ helper.formatDuration(message.timeToHandle) }} + {{ helper.formatDuration(message.timeToHandle) }} {{ message.memoryUsage }} diff --git a/templates/components/snapshot.html.twig b/templates/components/snapshot.html.twig index 45cf756..04567ac 100644 --- a/templates/components/snapshot.html.twig +++ b/templates/components/snapshot.html.twig @@ -35,13 +35,13 @@ Average Wait Time - {{ helper.formatDuration(snapshot.averageWaitTime) }} + {{ helper.formatDuration(snapshot.averageWaitTime) }} Average Handling Time - {{ helper.formatDuration(snapshot.averageHandlingTime) }} + {{ helper.formatDuration(snapshot.averageHandlingTime) }} diff --git a/templates/detail.html.twig b/templates/detail.html.twig index ce77149..57829b8 100644 --- a/templates/detail.html.twig +++ b/templates/detail.html.twig @@ -66,13 +66,13 @@ Time in Queue - {{ helper.formatDuration(message.timeInQueue) }} + {{ helper.formatDuration(message.timeInQueue) }} Time to Handle - {{ helper.formatDuration(message.timeToHandle) }} + {{ helper.formatDuration(message.timeToHandle) }} diff --git a/templates/schedule.html.twig b/templates/schedule.html.twig index b114a29..453b036 100644 --- a/templates/schedule.html.twig +++ b/templates/schedule.html.twig @@ -131,7 +131,7 @@ {% if message %} - {{ helper.formatDuration(message.timeToHandle) }} + {{ helper.formatDuration(message.timeToHandle) }} {% else %} - {% endif %} diff --git a/templates/statistics.html.twig b/templates/statistics.html.twig index d32608d..48b66d3 100644 --- a/templates/statistics.html.twig +++ b/templates/statistics.html.twig @@ -82,10 +82,10 @@ {% endif %} - {{ helper.formatDuration(metric.averageWaitTime) }} + {{ helper.formatDuration(metric.averageWaitTime) }} - {{ helper.formatDuration(metric.averageHandlingTime) }} + {{ helper.formatDuration(metric.averageHandlingTime) }} {{ metric.handledPerMinute|round(2) }}