CN-63 feat: 地图tooltip单位处理
This commit is contained in:
@@ -264,7 +264,7 @@ export default {
|
|||||||
getTitle (r) {
|
getTitle (r) {
|
||||||
let title = ''
|
let title = ''
|
||||||
if (r.establishLatency || r.httpResponseLatency || r.sslConLatency) {
|
if (r.establishLatency || r.httpResponseLatency || r.sslConLatency) {
|
||||||
title = `${title}: ${shortFormatter(r.establishLatency || r.httpResponseLatency || r.sslConLatency)} ms`
|
title = `${title}: ${timeUnitFormatter(r.establishLatency || r.httpResponseLatency || r.sslConLatency).join(' ')}`
|
||||||
}
|
}
|
||||||
if (r.sequenceGapLossPercent || r.pktRetransPercent) {
|
if (r.sequenceGapLossPercent || r.pktRetransPercent) {
|
||||||
title = `${title}: ${shortFormatter(r.sequenceGapLossPercent || r.pktRetransPercent)} %`
|
title = `${title}: ${shortFormatter(r.sequenceGapLossPercent || r.pktRetransPercent)} %`
|
||||||
|
|||||||
Reference in New Issue
Block a user