[pve-devel] applied: [PATCH proxmox-resource-scheduling] pve static: add one to avoid boosting tiny relative differences

Fiona Ebner f.ebner at proxmox.com
Thu Oct 5 11:50:15 CEST 2023


Am 22.03.23 um 09:32 schrieb Thomas Lamprecht:
> Am 21/03/2023 um 17:44 schrieb Fiona Ebner:
>> Only the relative difference for values between different alternatives
>> is relevant, meaning 0.002 vs 0.004 and 0.2 vs 0.4 will influence the
>> scoring in the same way. This is not really desirable, because values
>> closer to 1.0 indicate higher load and thus should influence the
>> scoring more than differences that are actually tiny, but big when
>> viewed as a relative difference.
>>
>> To avoid the issue, simply add 1.0 to all values. Like that, 1.002 vs
>> 1.004 will also be small when viewed as a relative difference.
>>
>> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
>> ---
>>  src/pve_static.rs | 10 ++++++----
>>  1 file changed, 6 insertions(+), 4 deletions(-)
>>
>>
> 
> applied series (yesterday already), thanks!

Seems like only this single patch was applied, I don't see
proxmox-perl-rs ones there (still apply cleanly).





More information about the pve-devel mailing list