mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 10:12:53 +02:00
fix RAM calculation on a different server (#612)
This commit is contained in:
committed by
GitHub
parent
192c1947a6
commit
12b5c00d14
@@ -137,7 +137,10 @@ function Root(props: IProps): React.ReactElement {
|
||||
|
||||
const debouncedCodeParsing = debounce((newCode: string) => {
|
||||
infLoop(newCode);
|
||||
updateRAM(!currentScript || currentScript.isTxt ? null : newCode);
|
||||
updateRAM(
|
||||
!currentScript || currentScript.isTxt ? null : newCode,
|
||||
currentScript && GetServer(currentScript.hostname),
|
||||
);
|
||||
finishUpdatingRAM();
|
||||
}, 300);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user