From 8c2883ba5cbd6f31c509b2a6bf22aa792cdb88a0 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 19 Jun 2024 18:45:41 -0500 Subject: [PATCH] Pregen time --- pageUpdater.js | 3 ++- static/stats/index.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pageUpdater.js b/pageUpdater.js index d508eb1..d7e0f37 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -389,8 +389,9 @@ function socketeer() { lastLanyardUpdate = Date.now() for (var i = 0; i < pregenFiles.length; i++) { - // console.log(pregenFiles[i].absolutePath) + var startTime = Date.now() 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 < lanyardData.activities.length; i++) { diff --git a/static/stats/index.html b/static/stats/index.html index a367cc8..5ba3190 100644 --- a/static/stats/index.html +++ b/static/stats/index.html @@ -36,6 +36,7 @@