summaryrefslogtreecommitdiff
path: root/src/scheduler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scheduler.rs')
-rw-r--r--src/scheduler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scheduler.rs b/src/scheduler.rs
index 4d4e987..c34e151 100644
--- a/src/scheduler.rs
+++ b/src/scheduler.rs
@@ -84,8 +84,8 @@ impl<'a> Scheduler<'a> {
// We assume that the CPU IDs for each core type are assigned contiguously.
e_core_ids.sort();
p_core_ids.sort();
- let e_cores = *e_core_ids.first().unwrap_or(&0)..(*e_core_ids.last().unwrap_or(&0) + 1);
- let p_cores = *p_core_ids.first().unwrap_or(&0)..(*p_core_ids.last().unwrap_or(&0) + 1);
+ let e_cores = *e_core_ids.first().unwrap_or(&0)..(*e_core_ids.last().unwrap_or(&-1) + 1);
+ let p_cores = *p_core_ids.first().unwrap_or(&0)..(*p_core_ids.last().unwrap_or(&-1) + 1);
let all_cores = 0..((e_cores.len() + p_cores.len()) as u32);
let selector = Box::new(RoundRobinSelector::new(&e_cores));