File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/app-backend-core/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,14 @@ export function handleAddPerformanceTag (backend: DevtoolsBackend, ctx: BackendC
127
127
let tooltip = '<div class="grid grid-cols-2 gap-2 font-mono text-xs">'
128
128
for ( const type in measures ) {
129
129
const d = measures [ type ]
130
- tooltip += `<div>${ type } </div><div class="text-right text-black rounded px-1 ${ d > 30 ? 'bg-red-400' : d > 10 ? 'bg-yellow-400' : 'bg-green-400' } ">${ d } ms</div>`
130
+ tooltip += `<div>${ type } </div><div class="text-right text-black rounded px-1 ${ d > 30 ? 'bg-red-400' : d > 10 ? 'bg-yellow-400' : 'bg-green-400' } ">${ Math . round ( d * 1000 ) / 1000 } ms</div>`
131
131
}
132
132
tooltip += '</div>'
133
133
134
134
payload . treeNode . tags . push ( {
135
135
backgroundColor : duration > 30 ? 0xF87171 : 0xFBBF24 ,
136
136
textColor : 0x000000 ,
137
- label : `${ duration } ms` ,
137
+ label : `${ Math . round ( duration * 1000 ) / 1000 } ms` ,
138
138
tooltip,
139
139
} )
140
140
}
You can’t perform that action at this time.
0 commit comments