ydb-embedded-ui icon indicating copy to clipboard operation
ydb-embedded-ui copied to clipboard

change how uptime is displayed

Open adameat opened this issue 1 year ago • 0 comments

currently we have:

image

I suggest to change how it displayed to simplify readibilty by making connection between value of uptime with length of the text representation:

everything below 1 minute we show just as seconds without leading zero:

5s 10s 30s

after 1 minute we show short time representation:

1:05 5:10 15:30

after 1 hour we show longer time representation:

1:30:20 5:05:05 15:30:40

after 24 hours we adding number of the days

1d 01:30:20 1d 15:05:05 12d 05:05:05

of course everything with right-alignment. and we dont show leading zeros on the leftmost elements.

I expect it to be something like this:

image

adameat avatar Jul 25 '24 12:07 adameat