Fix ram usage of scp-overwritten files

This commit is contained in:
Snarling 2022-09-26 09:31:49 -04:00
parent 69eda4340e
commit 3dbc848098

@ -924,7 +924,7 @@ const base: InternalAPI<NS> = {
continue;
}
destScript.code = sourceScript.code;
destScript.ramUsage = destScript.ramUsage;
destScript.ramUsage = sourceScript.ramUsage;
destScript.markUpdated();
helpers.log(ctx, () => `WARNING: File '${file}' overwritten on '${destServer?.hostname}'`);
continue;