Skip to content

Commit 1261fe8

Browse files
tjandy98sjmonsonDaltheCow
authored
Fix latency units display from ms to s (#256)
Signed-off-by: tjandy98 <[email protected]> Signed-off-by: Samuel Monson <[email protected]> Signed-off-by: dalthecow <[email protected]> Co-authored-by: Samuel Monson <[email protected]> Co-authored-by: Benjamin Blue <[email protected]>
1 parent ff85f41 commit 1261fe8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ui/lib/components/MetricsSummary/MetricsSummary.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const Component = () => {
143143
</FieldCell>
144144
<FieldCell data-id="field-cell-3">
145145
<Input
146-
label="TIME PER REQUEST (Ms)"
146+
label="TIME PER REQUEST (s)"
147147
value={timePerRequestSLO}
148148
onChange={handleTimePerRequest}
149149
fullWidth
@@ -253,7 +253,7 @@ export const Component = () => {
253253
label="time per request"
254254
value={`${formatNumber(
255255
interpolatedMetricData.timePerRequest.enforcedPercentileValue
256-
)} ms`}
256+
)} s`}
257257
match={isTprMatch}
258258
valueColor={LineColor.Tertiary}
259259
/>

src/ui/lib/components/WorkloadMetrics/WorkloadMetrics.component.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ export const Component = () => {
103103
leftColumn={leftColumn(
104104
formattedRequestRate,
105105
formatNumber(timePerRequestAtRPS.mean),
106-
'ms'
106+
's'
107107
)}
108108
rightColumn={columnContent(
109109
formattedRequestRate,
110110
timePerRequestAtRPS.percentiles,
111-
'ms'
111+
's'
112112
)}
113113
>
114114
<GraphTitle title="E2E Latency vs RPS" />
@@ -117,7 +117,7 @@ export const Component = () => {
117117
data={timePerRequest}
118118
margins={{ left: 50, bottom: 50 }}
119119
xLegend="request per sec"
120-
yLegend="latency (ms)"
120+
yLegend="latency (s)"
121121
minX={minX}
122122
/>
123123
</GraphsWrapper>
@@ -127,7 +127,7 @@ export const Component = () => {
127127
leftColumn={leftColumn3(
128128
formattedRequestRate,
129129
formatNumber(throughputAtRPS.mean),
130-
'ms'
130+
'tok/s'
131131
)}
132132
>
133133
<GraphTitle title="Throughput vs RPS" />

0 commit comments

Comments
 (0)