From 4c5bf4617d5383403582606c0b4a033267c85e20 Mon Sep 17 00:00:00 2001 From: valentijn <120188387+HerpieDerpieee@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:25:10 +0100 Subject: [PATCH] chnaged ram usage from static to dynamic --- commands/commands.js | 2 +- httpdocs/public/js/terminal.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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);