mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +08:00
Round queue latency displayed in UI to the nearest multiple of 10ms
This commit is contained in:
parent
af9c47d038
commit
fe6898e75e
@ -114,7 +114,7 @@ func toQueueStateSnapshot(info *asynq.QueueInfo) *queueStateSnapshot {
|
||||
MemoryUsage: info.MemoryUsage,
|
||||
Size: info.Size,
|
||||
LatencyMillisec: info.Latency.Milliseconds(),
|
||||
DisplayLatency: info.Latency.String(),
|
||||
DisplayLatency: info.Latency.Round(10 * time.Millisecond).String(),
|
||||
Active: info.Active,
|
||||
Pending: info.Pending,
|
||||
Scheduled: info.Scheduled,
|
||||
|
Loading…
Reference in New Issue
Block a user