chnaged ram usage from static to dynamic

This commit is contained in:
valentijn
2024-02-06 11:25:10 +01:00
parent 2b659bfbbf
commit 4c5bf4617d
2 changed files with 1 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ function info(req, res){
<p>USER: ${req.session.state.username}</p> <p>USER: ${req.session.state.username}</p>
<p>CPU: 12th Gen Intel i7-1260P (12) @ 2.496GHz</p> <p>CPU: 12th Gen Intel i7-1260P (12) @ 2.496GHz</p>
<p>GPU: NVIDIA Geforce RTX 4060 TI</p> <p>GPU: NVIDIA Geforce RTX 4060 TI</p>
<p>Memory: 812MiB/2048MiB</p> <p>Memory: ${Math.floor(Math.random()*(2048-102)+102)}MiB/2048MiB</p>
</div> </div>
</div>`, </div>`,
req.session.state.directory, req.session.state.directory,

View File

@@ -152,8 +152,6 @@ function resizeInput() {
} }
} }
function measureTextWidth(text) { function measureTextWidth(text) {
const nonBreakingSpace = '\u00A0'; const nonBreakingSpace = '\u00A0';
const sanitizedText = text.replace(/ /g, nonBreakingSpace); const sanitizedText = text.replace(/ /g, nonBreakingSpace);