getScriptRam now optionally take hostname/ip or default to localhost

This commit is contained in:
Olivier Gagnon
2018-05-07 15:56:55 -04:00
parent 8dba456b65
commit 577f73dce7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1994,7 +1994,7 @@ function NetscriptFunctions(workerScript) {
}
return suc;
},
getScriptRam : function (scriptname, ip) {
getScriptRam : function (scriptname, ip=workerScript.serverIp) {
if (workerScript.checkingRam) {
if (workerScript.loadedFns.getScriptRam) {
return 0;