From 3fa02d0506e644ba920cd5d9c97b960e27140636 Mon Sep 17 00:00:00 2001 From: Anastasiia Pnevskaia Date: Tue, 24 Dec 2024 15:22:20 +0100 Subject: [PATCH] Update src/cpp/src/scheduler.hpp Co-authored-by: Ilya Lavrenov --- src/cpp/src/scheduler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/src/scheduler.hpp b/src/cpp/src/scheduler.hpp index 3e7b07c346..ba0880b58a 100644 --- a/src/cpp/src/scheduler.hpp +++ b/src/cpp/src/scheduler.hpp @@ -251,7 +251,7 @@ class Scheduler { size_t available_slots = currently_allocated_token_slots - occupied_token_slots, required_slots = num_scheduled_tokens > available_slots ? num_scheduled_tokens - available_slots : 0; size_t num_required_blocks = (required_slots + block_size - 1) / block_size, num_free_blocks = m_block_manager.num_free_blocks(); - while (num_required_blocks > num_free_blocks) { + while (num_required_blocks > m_block_manager.num_free_blocks()) { if (!_try_increase_cache()) { break; }