summaryrefslogtreecommitdiff
path: root/src/energy/budget.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/energy/budget.rs')
-rw-r--r--src/energy/budget.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/energy/budget.rs b/src/energy/budget.rs
index d7c38c3..8c2ebe9 100644
--- a/src/energy/budget.rs
+++ b/src/energy/budget.rs
@@ -43,10 +43,6 @@ impl SimpleCappingPolicy {
} else {
self.last_ratio = 0.99 * self.last_ratio + 0.01 * ratio.clamp(0.001, 100.0);
}
- let a = (((self.last_ratio * base_energy_per_process) * 1000.) as i64).min(MAX_BUDGET_MJ);
- // println!(
- // "budget: {a} ration: {ratio} actual_energy: {actual_energy} energy_cap: {energy_cap}"
- // );
- a
+ (((self.last_ratio * base_energy_per_process) * 1000.) as i64).min(MAX_BUDGET_MJ)
}
}