Skip to content

Commit

Permalink
Fixes #657
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 15, 2019
1 parent 07aada6 commit 6990ccf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Eleventy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const pkg = require("../package.json");
const TemplatePath = require("./TemplatePath");
const TemplateData = require("./TemplateData");
const TemplateWriter = require("./TemplateWriter");
Expand Down Expand Up @@ -132,7 +133,11 @@ class Eleventy {
ret.push(`in ${time} ${simplePlural(time, "second", "seconds")}`);

if (writeCount >= 10) {
ret.push(`(${((time * 1000) / writeCount).toFixed(1)}ms each)`);
ret.push(
`(${((time * 1000) / writeCount).toFixed(1)}ms each, v${pkg.version})`
);
} else {
ret.push(`(v${pkg.version})`);
}

return ret.join(" ");
Expand Down

0 comments on commit 6990ccf

Please sign in to comment.