Skip to content

Commit

Permalink
Only show per-ms log when writing more than one file
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 13, 2024
1 parent d3d24cc commit ca5bada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class Eleventy {
);

// More than 1 second total, show estimate of per-template time
if (time >= 1 && writeCount > 0) {
if (time >= 1 && writeCount > 1) {
ret.push(`(${((time * 1000) / writeCount).toFixed(1)}ms each, v${pkg.version})`);
} else {
ret.push(`(v${pkg.version})`);
Expand Down

0 comments on commit ca5bada

Please sign in to comment.