Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Jan 14, 2025
1 parent 215584b commit 26f3859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mockotlpserver/lib/waterfall.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ function renderSpan(span, prefix = '') {
let startOffset =
Number(
BigInt(span.startTimeUnixNano) -
BigInt(lastRenderedSpan.startTimeUnixNano)
BigInt(lastRenderedSpan.startTimeUnixNano)
) / 1e6;
let sign = startOffset >= 0 ? '+' : '-';
let unit = 'ms';

// Use the absolute value to do the proper unit transform
startOffset = Math.abs(startOffset)
startOffset = Math.abs(startOffset);
if (startOffset >= 1000) {
startOffset /= 1000;
unit = 's';
Expand Down

0 comments on commit 26f3859

Please sign in to comment.