diff --git a/commands/commands.js b/commands/commands.js index d7b51d1..d948b74 100644 --- a/commands/commands.js +++ b/commands/commands.js @@ -136,7 +136,7 @@ function info(req, res){

USER: ${req.session.state.username}

CPU: 12th Gen Intel i7-1260P (12) @ 2.496GHz

GPU: NVIDIA Geforce RTX 4060 TI

-

Memory: 812MiB/2048MiB

+

Memory: ${Math.floor(Math.random()*(2048-102)+102)}MiB/2048MiB

`, req.session.state.directory, diff --git a/httpdocs/public/js/terminal.js b/httpdocs/public/js/terminal.js index 4690a33..8291d28 100644 --- a/httpdocs/public/js/terminal.js +++ b/httpdocs/public/js/terminal.js @@ -152,8 +152,6 @@ function resizeInput() { } } - - function measureTextWidth(text) { const nonBreakingSpace = '\u00A0'; const sanitizedText = text.replace(/ /g, nonBreakingSpace);