Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

para scheduler: fix division #7339

Merged
merged 2 commits into from
Jun 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/parachains/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ impl<T: Config> Pallet<T> {
let session_start = <SessionStartBlock<T>>::get();
let blocks_since_session_start = now.saturating_sub(session_start);
let blocks_since_last_rotation =
blocks_since_session_start % config.group_rotation_frequency;
blocks_since_session_start % config.group_rotation_frequency.max(1);
kianenigma marked this conversation as resolved.
Show resolved Hide resolved

let absolute_cutoff =
sp_std::cmp::max(config.chain_availability_period, config.thread_availability_period);
Expand Down