mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
DNET: Remove bonus time effect on authentication and heartbleed speed; fix ram rounding (#2627)
This commit is contained in:
committed by
GitHub
parent
be6fcd206f
commit
00a1bc2f6e
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user