DNET: Remove bonus time effect on authentication and heartbleed speed; fix ram rounding (#2627)

This commit is contained in:
Michael Ficocelli
2026-04-10 16:04:05 -07:00
committed by GitHub
parent be6fcd206f
commit 00a1bc2f6e
5 changed files with 18 additions and 17 deletions
+2 -1
View File
@@ -26,6 +26,7 @@ import { Settings } from "../Settings/Settings";
import type { ScriptKey } from "../utils/helpers/scriptKey";
import { assertObject } from "../utils/TypeAssertion";
import { clampNumber } from "../utils/helpers/clampNumber";
import { roundToTwo } from "../utils/helpers/roundToTwo";
export interface BaseServerConstructorParams {
adminRights?: boolean;
@@ -233,7 +234,7 @@ export abstract class BaseServer implements IServer {
}
updateRamUsed(ram: number): void {
this.ramUsed = clampNumber(ram, 0, this.maxRam);
this.ramUsed = roundToTwo(clampNumber(ram, 0, this.maxRam));
}
pushProgram(program: ProgramFilePath | CompletedProgramName): void {