mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 03:25:44 +02:00
more convertion from ip to hostname
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getServer } from "../Server/ServerHelpers";
|
||||
import { GetServer } from "../Server/AllServers";
|
||||
import { RunningScript } from "./RunningScript";
|
||||
|
||||
export function getRamUsageFromRunningScript(script: RunningScript): number {
|
||||
@@ -6,7 +6,7 @@ export function getRamUsageFromRunningScript(script: RunningScript): number {
|
||||
return script.ramUsage; // Use cached value
|
||||
}
|
||||
|
||||
const server = getServer(script.server);
|
||||
const server = GetServer(script.server);
|
||||
if (server == null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user