Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
itanka9 committed Nov 19, 2024
1 parent 3b7aedc commit 2ec963a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/json2pbf.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ for (let i = 0; i < codecs.length; i++) {
})
}


2 changes: 1 addition & 1 deletion tests/stats-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class StatsReporter implements Reporter {
const { packTime, unpackTime, receiveTime, sendTime } = stats;
const total = packTime + unpackTime + receiveTime + sendTime;

const fmt = (n: number) => (' '+Math.trunc(n)).slice(-6);
const fmt = (n: number) => Math.trunc(n);

this.results[stats.codec][stats.case] = `${fmt(total)} (pack: ${fmt(packTime)}, unpack: ${fmt(unpackTime)}, receive: ${fmt(receiveTime)}, send: ${fmt(sendTime)})`;
}
Expand Down

0 comments on commit 2ec963a

Please sign in to comment.