Skip to content

Commit

Permalink
changed the math expression in store_client.cc file from (a/b/c > d) …
Browse files Browse the repository at this point in the history
…to (a > b*d/c)
  • Loading branch information
Shailesh Vashishth committed Oct 17, 2024
1 parent 6c33c64 commit 3ce9346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ CheckQuickAbortIsReasonable(StoreEntry * entry)
return false;
}

if ((curlen / (expectlen / 100)) > (Config.quickAbort.pct)) {
if (curlen > expectlen*(Config.quickAbort.pct/100.0)) {
debugs(90, 3, "quick-abort? NO past point of no return");
return false;
}
Expand Down

0 comments on commit 3ce9346

Please sign in to comment.