Small UI change - HacknetNode production added toFixed(2)

This commit is contained in:
Daniel Xie 2017-05-01 22:56:48 -05:00
parent 08f4278474
commit 097807282d

@ -224,7 +224,7 @@ updateHacknetNodeDomElement = function(nodeObj) {
if (txt == null) {throw new Error("Cannot find text element");} if (txt == null) {throw new Error("Cannot find text element");}
txt.innerHTML = "Node name: " + nodeName + "<br>" + txt.innerHTML = "Node name: " + nodeName + "<br>" +
"Production: $" + nodeObj.totalMoneyGenerated.toFixed(2) + "Production: $" + nodeObj.totalMoneyGenerated.toFixed(2) +
" ($" + nodeObj.moneyGainRatePerSecond + " / second) <br>" + " ($" + nodeObj.moneyGainRatePerSecond.toFixed(2) + " / second) <br>" +
"Level: " + nodeObj.level + "<br>" + "Level: " + nodeObj.level + "<br>" +
"RAM: " + nodeObj.ram + "GB<br>" + "RAM: " + nodeObj.ram + "GB<br>" +
"Cores: " + nodeObj.numCores; "Cores: " + nodeObj.numCores;