1 Commits
Author SHA1 Message Date
Iñigo Etxaniz 497937a833 change load index computation 2026-07-17 06:53:44 +00:00
+1 -1
View File
@@ -22,7 +22,7 @@ def logic(plant):
cpu = plant.state.get("deb13kde-cpu", 0.0) cpu = plant.state.get("deb13kde-cpu", 0.0)
ram = plant.state.get("deb13kde-ram", 0.0) ram = plant.state.get("deb13kde-ram", 0.0)
load_index = (cpu + ram) / 2.0 load_index = (cpu * 3.0 + ram) / 4.0
batch = plant.new_write_batch() batch = plant.new_write_batch()
batch.add(ID_LOAD_INDEX, load_index, "deb13kde-load-index") batch.add(ID_LOAD_INDEX, load_index, "deb13kde-load-index")