next.js
6caeccb1 - Time logs: Show full millisecond instead of 1 decimal (#88313)

Commit
138 days ago
Time logs: Show full millisecond instead of 1 decimal (#88313) ## Fix: Remove unnecessary decimal place in millisecond duration formatting ### What Fixed `durationToString` to display whole milliseconds (e.g., "193ms") instead of showing a redundant decimal place (e.g., "193.0ms"). ### Why The "Ready in X" message was displaying durations like "Ready in 193.0ms" which looks incorrect. The `.0` suffix provides no useful information and makes the output look like a bug. ### How Changed `.toFixed(1)` to `.toFixed(0)` for millisecond formatting in `durationToString()`. This aligns with the behavior of the newer `durationToStringWithNanoseconds()` function which already uses `.toFixed(0)` for milliseconds. **Before:** `✓ Ready in 193.0ms` **After:** `✓ Ready in 193ms`
Author
Parents
Loading