bugfix for scheduling file
This commit is contained in:
parent
fbd62f1a3a
commit
3315017b9b
@ -28,9 +28,9 @@ impl PusScheduler {
|
|||||||
pub fn num_scheduled_telecommands(&self) -> u64 {
|
pub fn num_scheduled_telecommands(&self) -> u64 {
|
||||||
let mut num_entries = 0;
|
let mut num_entries = 0;
|
||||||
for entries in &self.tc_map {
|
for entries in &self.tc_map {
|
||||||
num_entries += entries.1.len();
|
num_entries += entries.1.len() as u64;
|
||||||
}
|
}
|
||||||
num_entries.into()
|
num_entries
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_enabled(&self) -> bool {
|
pub fn is_enabled(&self) -> bool {
|
||||||
@ -63,8 +63,12 @@ impl PusScheduler {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
match self.tc_map.entry(time_stamp) {
|
match self.tc_map.entry(time_stamp) {
|
||||||
Entry::Vacant(e) => e.insert(vec![addr]),
|
Entry::Vacant(e) => {
|
||||||
Entry::Occupied(mut v) => v.get_mut().push(addr),
|
e.insert(vec![addr]);
|
||||||
|
},
|
||||||
|
Entry::Occupied(mut v) => {
|
||||||
|
v.get_mut().push(addr);
|
||||||
|
},
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user