summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/getargs.c
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-04-23 23:19:05 +0300
committerbabenko <[email protected]>2026-04-23 23:42:22 +0300
commitdccd349dbac64a9ab0baeb3ba21597ff55c3800d (patch)
treee80edc963dcf322e41a3658dd3a4fd2bac9f8ec5 /contrib/tools/python3/Python/getargs.c
parentc5d664de685c63698c737d7178cb6676127bd15a (diff)
Fix InversedWeight computed as product instead of quotient in TFairShareInvokerQueue
`InversedWeight` was set to `ceil(UnitWeight * weight)` but the field comment and semantics require `ceil(UnitWeight / weight)` — a heavier bucket should have a smaller inversed weight so it is penalized less. Also guards against zero weight by falling back to `UnitWeight`, and clamps the result to at least 1. commit_hash:358839f4b0deed4b13f1bdd18e8a8e053d347e2f
Diffstat (limited to 'contrib/tools/python3/Python/getargs.c')
0 files changed, 0 insertions, 0 deletions