metrics: use "/" instead of ps

This commit is contained in:
Girish Ramakrishnan
2025-07-04 14:26:09 +02:00
parent 0d28292cfb
commit 5fd86b781b
2 changed files with 5 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ function onPeriodChanged() {
min: 0,
grace: 100*1000, // add 100kBps. otherwise, the yaxis auto-scales to data and the values appear too dramatic
ticks: {
callback: (value) => `${prettyDecimalSize(value)}ps`,
callback: (value) => `${prettyDecimalSize(value)}/s`,
maxTicksLimit: 6 // max tick labels to show
},
beginAtZero: true,
@@ -197,7 +197,7 @@ function onPeriodChanged() {
min: 0,
grace: 50*1000, // add 50kBps. otherwise, the yaxis auto-scales to data and the values appear too dramatic
ticks: {
callback: (value) => `${prettyDecimalSize(value)}ps`,
callback: (value) => `${prettyDecimalSize(value)}/s`,
maxTicksLimit: 6 // max tick labels to show
},
beginAtZero: true,