mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
BUGFIX: Fix rounding issues due to ramOverride edge cases (#1339)
*All* RAM calculations must take place in units of hundredths-of-a-GB in order for there not to be issues. Also adds slightly more verbose logging when the dynamic RAM check fails.
This commit is contained in:
3
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
3
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -270,7 +270,8 @@ interface RunOptions {
|
||||
* You can also use this to <i>increase</i> the RAM if the static RAM checker has missed functions
|
||||
* that you need to call.
|
||||
*
|
||||
* Must be greater-or-equal to the base RAM cost. Defaults to the statically calculated cost.
|
||||
* Must be greater-or-equal to the base RAM cost. Will be rounded to the nearest hundredth-of-a-GB,
|
||||
* which is the granularity of all RAM calculations. Defaults to the statically calculated cost.
|
||||
*/
|
||||
ramOverride?: number;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user