MC Bot not properly sending/reading ram and core usage

i been trying and trying to get my mc bot to properly read the ram and CPU usage which is 0.5 vCPUs and 512mb of ram


but it shows that instead ^^
this is the code i used

context.source.sendFeedback(`Total memory usage: ${Math.floor(os.totalmem() / 512 / 512)} MB`, false)
context.source.sendFeedback(`Available memory usage: ${Math.floor(os.freemem() / 512 / 512)} MB`, false)

does anyone know how to get it to properly read the ram and CPU usage?

1 Like

It’s probably reading the whole server’s RAM if I had to guess, which would be much more than you’re allocated to use.

2 Likes

then how do i get it to not do that?