pregen total time tracked

This commit is contained in:
bingus_violet 2024-06-27 00:55:38 -05:00
parent 6ee2f51f28
commit fb5d513545
2 changed files with 4 additions and 0 deletions

View file

@ -398,6 +398,9 @@ function pregenerate() {
pregenFiles[i].html = converter(fs.readFileSync(pregenFiles[i].absolutePath).toString(), false)
pregenFiles[i].html = pregenFiles[i].html.replaceAll("{PREGEN_TIME}", Date.now() - startTime)
}
for (var i = 0; i < pregenFiles.length; i++) {
pregenFiles[i].html = pregenFiles[i].html.replaceAll("{PREGEN_TOTAL}", Date.now() - lastPregen)
}
}
pregenerate()

View file

@ -38,6 +38,7 @@
<ul>
<li>Page generation time: {LOAD_TIME}</li>
<li>Pregeneration time: {PREGEN_TIME}ms</li>
<li>Total Pregen time (all pages): {PREGEN_TOTAL}ms</li>
<li>Uptime: {UPTIME}</li>
<li>Last Lanyard update: {LAST_LANYARD}</li>
<li>Last Pregeneration: {LAST_PREGEN}</li>