chore(trace-viewer): format negative duration as -

This commit is contained in:
Yury Semikhatsky 2024-05-15 18:13:18 -07:00
parent 2734a05342
commit b03323f3d3

View file

@ -55,7 +55,7 @@ export function useMeasure<T extends Element>() {
}
export function msToString(ms: number): string {
if (!isFinite(ms))
if (ms < 0 || !isFinite(ms))
return '-';
if (ms === 0)