mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-01 20:13:51 +01:00
fix ram miscalc
This commit is contained in:
parent
2bf47c60df
commit
f9afff57b2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -101,7 +101,7 @@ function removeWorkerScript(workerScript: WorkerScript, rerenderUi = true): void
|
|||||||
|
|
||||||
// Recalculate ram used on that server
|
// Recalculate ram used on that server
|
||||||
server.ramUsed = 0;
|
server.ramUsed = 0;
|
||||||
for (const rs of server.runningScripts) server.ramUsed += rs.ramUsage;
|
for (const rs of server.runningScripts) server.ramUsed += rs.ramUsage * rs.threads;
|
||||||
|
|
||||||
// Delete script from global pool (workerScripts)
|
// Delete script from global pool (workerScripts)
|
||||||
const res = workerScripts.delete(workerScript.pid);
|
const res = workerScripts.delete(workerScript.pid);
|
||||||
|
@ -489,7 +489,7 @@ export class Sleeve extends Person {
|
|||||||
cyclesUsed = 0;
|
cyclesUsed = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(cyclesUsed);
|
|
||||||
this.currentTaskTime += time;
|
this.currentTaskTime += time;
|
||||||
|
|
||||||
// Shock gradually goes towards 100
|
// Shock gradually goes towards 100
|
||||||
|
Loading…
Reference in New Issue
Block a user