Skip to content

Commit

Permalink
fix(bloat): clip time back to integers
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Aug 26, 2024
1 parent b872d3b commit a426b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export function bloatControl(obj) {
return `${o.substring(0, 1024)}…`;
}
if (typeof o === 'number') {
if (['LCP', 'INP', 'TTFB'].includes(k)) {
if (['LCP', 'INP', 'TTFB', 'time'].includes(k)) {
return Math.floor(o);
}
return o;
Expand Down

0 comments on commit a426b70

Please sign in to comment.