3TZILRX2OJIN4CH4P5MZ2PB56CJAPTDXGSU46FOTECHLQQBCPMNQC export const main = async function(ns) {const float_period_check = ns.args[0] * 1000;const string_servers_bought_name = ns.args[1];const float_ram_utilisation_threshold = ns.args[2];
export const main = async function (ns) {const float_period_check = 1e3 * ns.args[0],string_servers_bought_name = ns.args[1],float_ram_utilisation_threshold = ns.args[2];for (; !boolean_servers_bought_all_max(ns); ) {for (;float_get_network_ram_utilisation(ns) > float_ram_utilisation_threshold;
while (!boolean_servers_bought_all_max(ns)) {while (float_get_network_ram_utilisation(ns) > float_ram_utilisation_threshold) {while (boolean_conditions_server_delete_purchase(ns)) {ns.deleteServer(string_get_server_bought_smallest(ns));ns.purchaseServer(string_servers_bought_name, integer_get_server_ram_biggest_afforded(ns));}while (
) {for (; boolean_conditions_server_delete_purchase(ns); )ns.deleteServer(string_get_server_bought_smallest(ns)),ns.purchaseServer(string_servers_bought_name,integer_get_server_ram_biggest_afforded(ns)),await ns.sleep(float_period_check);for (;
boolean_conditions_server_purchase_1(ns)) {ns.purchaseServer(string_servers_bought_name, integer_get_server_ram_biggest_afforded(ns));}
boolean_conditions_server_purchase_1(ns);)ns.purchaseServer(string_servers_bought_name,integer_get_server_ram_biggest_afforded(ns))await ns.sleep(float_period_check);