Skip to content

Commit

Permalink
Update proxmox.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nishogi committed Dec 11, 2023
1 parent 9f3e86c commit bb6ff9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/proxmox_api/proxmox.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def load_balance_server():
server = ""
perram_min = 100
for i in nodes_info:
if i['node'] != "aomine": # on veut rien sur aomine
if i['node'] != "sam": # on veut rien sur sam
perram = round(i["mem"] * 100 / i["maxmem"], 2)
percpu = round(i["cpu"] * 100, 2)
if i["status"] == "online" and perram < 90 and percpu < 70:
Expand Down Expand Up @@ -960,4 +960,4 @@ def transfer_ownership(vmid, newowner):
database.update_all_ip_dns_record(ip, userid)
return {"status": "ok"}, 201



0 comments on commit bb6ff9a

Please sign in to comment.