File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,9 @@ class Metrics {
420
420
latency . x . values = requestDatas . Values . map ( ( item ) => {
421
421
return item . Timestamp * 1000
422
422
} )
423
- latency . y . push ( makeMetric ( 'p95 latency' , latencyP95Datas ) )
423
+ const p95Obj = makeMetric ( 'p95 latency' , latencyP95Datas )
424
+ p95Obj . total = Math . max ( ...p95Obj . values )
425
+ latency . y . push ( p95Obj )
424
426
}
425
427
426
428
if ( latencyP50Datas ) {
@@ -434,7 +436,9 @@ class Metrics {
434
436
latency . x . values = requestDatas . Values . map ( ( item ) => {
435
437
return item . Timestamp * 1000
436
438
} )
437
- latency . y . push ( makeMetric ( 'p50 latency' , latencyP50Datas ) )
439
+ const p50Obj = makeMetric ( 'p50 latency' , latencyP50Datas )
440
+ p50Obj . total = Math . max ( ...p50Obj . values )
441
+ latency . y . push ( p50Obj )
438
442
}
439
443
}
440
444
You can’t perform that action at this time.
0 commit comments