Remove gentime
This commit is contained in:
parent
e6d3ab50bb
commit
498f19f3b9
2 changed files with 1 additions and 2 deletions
2
index.js
2
index.js
|
@ -351,7 +351,7 @@ function pageUpdate() {
|
||||||
html = html.replace("{LAST_LANYARD}", gameTimeFormatter((Date.now() - lastLanyardUpdate) / 1000) + ' ago')
|
html = html.replace("{LAST_LANYARD}", gameTimeFormatter((Date.now() - lastLanyardUpdate) / 1000) + ' ago')
|
||||||
html = html.replace("{QUOTE_COUNT}", randomQuotes.length)
|
html = html.replace("{QUOTE_COUNT}", randomQuotes.length)
|
||||||
|
|
||||||
html = html.replace("{GENERATION_TIME}", (Date.now() - genStart).toString() + 'ms')
|
html = html.replace("{GENERATION_TIME}", Math.ceil(Date.now() - genStart).toString() + 'ms')
|
||||||
|
|
||||||
//fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
|
//fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
|
||||||
return html
|
return html
|
||||||
|
|
|
@ -67,7 +67,6 @@
|
||||||
<li>Uptime: {UPTIME}</li>
|
<li>Uptime: {UPTIME}</li>
|
||||||
<li>Last Lanyard Update: {LAST_LANYARD}</li>
|
<li>Last Lanyard Update: {LAST_LANYARD}</li>
|
||||||
<li>Quotes: {QUOTE_COUNT}</li>
|
<li>Quotes: {QUOTE_COUNT}</li>
|
||||||
<li>Page Generation Time: {GENERATION_TIME}</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{SOCIALS}
|
{SOCIALS}
|
||||||
|
|
Loading…
Reference in a new issue