Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
340 stars 52 forks source link

Gui: Display Used memory instead of Free RAM memory #1045

Closed Dark4Codrutz closed 2 years ago

Dark4Codrutz commented 3 years ago

Viewing the free memory is useless as that's simply unused portion of memory and it can easily drop under 10MB freaking the user (try using samba share and copy a file). Total-Used=Available , which includes free memory but also includes stuff like Buffered/Cached memory which is dynamically managed to fit the bill by the kernel.

I opted for showing Used / Total to respect the logic of the surrounding elements: numbers grow as resources consumption grows, but one can prefer Available / Total which is simply subtracting the two as I mentioned previously.

Dark4Codrutz commented 3 years ago

This should also be changed in trafficmon.lua but I couldn't verify as of now (still waiting for the 10 minutes graph update -.-)

Dark4Codrutz commented 3 years ago

This should also be changed in trafficmon.lua but I couldn't verify as of now (still waiting for the 10 minutes graph update -.-)

Found trafficmon service, now I can test each change ...

Dark4Codrutz commented 3 years ago

Is it possible for modem-stats-modal.lp to draw overlapping graphs as it is right now ?

I'm thinking we could do a detailed view ala htop which shows Used Memory + Buffers Memory + Cache Memory color coded in a horizontal bar which in this case would be the vertical axis data points.

Dark4Codrutz commented 3 years ago

@FrancYescO could you please review this ?

Ansuel commented 3 years ago

Is it possible for modem-stats-modal.lp to draw overlapping graphs as it is right now ?

I'm thinking we could do a detailed view ala htop which shows Used Memory + Buffers Memory + Cache Memory color coded in a horizontal bar which in this case would be the vertical axis data points.

yes it can but the lua script has to be tweaked to grab also that data.