Skip to content

Commit

Permalink
move it to multiplication on the left side
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-binbin committed Jan 18, 2024
1 parent add26fc commit 80689e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ static void _dictShrinkIfNeeded(dict *d)
if ((dict_can_resize == DICT_RESIZE_ENABLE &&
d->ht_used[0] * 100 <= HASHTABLE_MIN_FILL * DICTHT_SIZE(d->ht_size_exp[0])) ||
(dict_can_resize != DICT_RESIZE_FORBID &&
d->ht_used[0] * 100 <= HASHTABLE_MIN_FILL / dict_force_resize_ratio * DICTHT_SIZE(d->ht_size_exp[0])))
d->ht_used[0] * 100 * dict_force_resize_ratio <= HASHTABLE_MIN_FILL * DICTHT_SIZE(d->ht_size_exp[0])))
{
if (!dictTypeResizeAllowed(d))
return;
Expand Down

0 comments on commit 80689e1

Please sign in to comment.