Skip to content

Commit

Permalink
fix memory order
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <[email protected]>
  • Loading branch information
Little-Wallace committed May 6, 2024
1 parent c69ad89 commit 8f51202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/src/hummock/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl MemoryLimiter {
}

pub fn new_with_blocking_ratio(quota: u64, blocking_ratio: u64) -> Self {
let main_quota = quota * blocking_ratio / 100;
let main_quota = quota / 100 * blocking_ratio;
Self {
inner: Arc::new(MemoryLimiterInner {
total_size: AtomicU64::new(0),
Expand Down

0 comments on commit 8f51202

Please sign in to comment.