FIX. Use rate not group potentials in CheckGroupTargetViolated

This commit is contained in:
Tor Harald Sandve 2024-10-21 08:33:54 +02:00
parent 363e3c2f4a
commit b8a0005e8d

View File

@ -261,7 +261,7 @@ checkGroupTargetsViolated(const BasicRates& rates,
auto target_opt = this->group_info_.getTarget(rate_type, group_name);
if (target_opt) {
auto delta_rate = new_rates[rate_type] - rates[rate_type];
auto new_group_rate = this->group_info_.getPotential(rate_type, group_name) + efficiency * delta_rate;
auto new_group_rate = this->group_info_.getRate(rate_type, group_name) + efficiency * delta_rate;
if (new_group_rate > *target_opt) {
if (this->debug) {
const std::string msg