API: Reduce the RAM cost of ns.rm() to match ns.scp() (#2761)

* API: Reduce the RAM cost of `ns.rm()` to match `ns.scp`

* Fix: Run 'doc'
This commit is contained in:
Naga
2026-05-13 13:26:12 -04:00
committed by GitHub
parent 021bcd9351
commit 99cdd80fa1
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ True if it successfully deletes the file, and false otherwise.
## Remarks
RAM cost: 1 GB
RAM cost: 0.6 GB
Removes the specified file from the current server. This function works for every file type except message (.msg) files.
+1 -2
View File
@@ -42,7 +42,6 @@ export const RamCostConstants = {
GetStock: 2.0,
BuySellStock: 2.5,
Round: 0.05,
ReadWrite: 1.0,
ArbScript: 1.0,
GetScript: 0.1,
GetRunningScript: 0.3,
@@ -631,7 +630,7 @@ export const RamCosts: RamCostTree<NSFull> = {
nextPortWrite: 0,
readPort: 0,
getPortHandle: 0,
rm: RamCostConstants.ReadWrite,
rm: RamCostConstants.Scp,
scriptRunning: RamCostConstants.ArbScript,
scriptKill: RamCostConstants.ArbScript,
getScriptName: 0,
+1 -1
View File
@@ -8588,7 +8588,7 @@ export interface NS {
/**
* Delete a file.
* @remarks
* RAM cost: 1 GB
* RAM cost: 0.6 GB
*
* Removes the specified file from the current server. This function works for every file
* type except message (.msg) files.