AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Commas for numbers over 1,000 for the “Average upstream response time” table

Open handcoding opened this issue 1 year ago • 6 comments

Prerequisites

  • [x] I have checked the Wiki and Discussions and found no answer

  • [x] I have searched other issues and found no duplicates

  • [x] I want to request a feature or enhancement and not ask a question

The problem

As a follow-up to issue #7329 (General Statistic comma format the numbers), for which there was a recent commit, I had also wanted to ask whether it might be possible to implement this same fix for thousands separators for the dashboard’s Average upstream response time table, such as shown below?

Image

Proposed solution

Format the numbers using the same formatting as the Top Clients and Top Domains counts..

Alternatives considered and additional information

(Filed this as a separate issue as requested by @ainar-g.)

handcoding avatar Jan 23 '25 18:01 handcoding

The duration values in the query log should probably also be formatted, while we're at it.

ainar-g avatar Jan 23 '25 18:01 ainar-g

Should be implemented in the latest Edge build. Could you please check?

ainar-g avatar Jan 29 '25 15:01 ainar-g

We'll close the issue as fixed. Please feel free to reopen if something doesn't work.

ainar-g avatar Feb 13 '25 17:02 ainar-g

@ainar-g are you aware of the regression in the query log? Is this intentional? 0.14 ms now is displayed as 0 ms

v0.107.55 Image

v0.107.57 Image

ardel avatar Feb 22 '25 15:02 ardel

I see the same regression on both of my instances of AGH that ardel refers to since the update.

TNOTA avatar Feb 22 '25 21:02 TNOTA

@ardel, thanks for notifying us! I'll let the frontend team know.

ainar-g avatar Feb 24 '25 13:02 ainar-g