Added parseFloat to ramPercent.
parent
411b88aa54
commit
8b7f11c434
|
@ -172,7 +172,7 @@ onWebSocketEvent(function (d){
|
||||||
cpuIndicatorBar.css('width',cpuPercent)
|
cpuIndicatorBar.css('width',cpuPercent)
|
||||||
cpuIndicatorPercentText.html(cpuPercent)
|
cpuIndicatorPercentText.html(cpuPercent)
|
||||||
//ram
|
//ram
|
||||||
var ramPercent = d.ram.percent.toFixed(1) + '%'
|
var ramPercent = parseFloat(d.ram.percent).toFixed(1) + '%'
|
||||||
ramIndicatorBar.css('width',ramPercent)
|
ramIndicatorBar.css('width',ramPercent)
|
||||||
ramIndicatorPercentText.html(ramPercent)
|
ramIndicatorPercentText.html(ramPercent)
|
||||||
ramIndicatorUsed.html(d.ram.used.toFixed(2))
|
ramIndicatorUsed.html(d.ram.used.toFixed(2))
|
||||||
|
|
Loading…
Reference in New Issue