Cache Image Counter & page gen time
This commit is contained in:
parent
4463448217
commit
d8e21e8b7b
2 changed files with 3 additions and 0 deletions
1
index.js
1
index.js
|
@ -367,6 +367,7 @@ async function pageUpdate() {
|
|||
html = html.replace("{UPTIME}", gameTimeFormatter((Date.now() - uptime) / 1000) + ' ago')
|
||||
html = html.replace("{LAST_LANYARD}", gameTimeFormatter((Date.now() - lastLanyardUpdate) / 1000) + ' ago')
|
||||
html = html.replace("{QUOTE_COUNT}", randomQuotes.length)
|
||||
html = html.replace("{CACHED_IMAGES}", fs.readdirSync(path.join(staticpath, 'cached')).length)
|
||||
|
||||
html = html.replace("{GENERATION_TIME}", Math.ceil(Date.now() - genStart).toString() + 'ms')
|
||||
|
||||
|
|
|
@ -65,6 +65,8 @@
|
|||
<li>Uptime: {UPTIME}</li>
|
||||
<li>Last Lanyard Update: {LAST_LANYARD}</li>
|
||||
<li>Quotes: {QUOTE_COUNT}</li>
|
||||
<li>Images Cached: {CACHED_IMAGES}</li>
|
||||
<li>Page Generation Time: {GENERATION_TIME}</li>
|
||||
</ul>
|
||||
|
||||
{SOCIALS}
|
||||
|
|
Loading…
Reference in a new issue