Merge branch 'fix-for-ram-percent' into 'dev'

Fix for ram percentage not showing issue

See merge request Shinobi-Systems/Shinobi!483
node-20
Moe 2023-09-12 14:46:00 +00:00
commit befe836ca7
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ onWebSocketEvent(function (d){
cpuIndicatorBar.css('width',cpuPercent)
cpuIndicatorPercentText.html(cpuPercent)
//ram
var ramPercent = d.ram.percent.toFixed(1) + '%'
var ramPercent = parseFloat(d.ram.percent).toFixed(1) + '%'
ramIndicatorBar.css('width',ramPercent)
ramIndicatorPercentText.html(ramPercent)
ramIndicatorUsed.html(d.ram.used.toFixed(2))