bugfix for scheduling file
This commit is contained in:
parent
fbd62f1a3a
commit
3315017b9b
2
NOTICE
2
NOTICE
@ -1,3 +1,3 @@
|
||||
Workspace for the satrs framework development.
|
||||
|
||||
This software contains code developed at the University of Stuttgart's Institute of Space Systems.
|
||||
This software contains code developed at the University of Stuttgart's Institute of Space Systems.
|
||||
|
@ -28,9 +28,9 @@ impl PusScheduler {
|
||||
pub fn num_scheduled_telecommands(&self) -> u64 {
|
||||
let mut num_entries = 0;
|
||||
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 {
|
||||
@ -63,8 +63,12 @@ impl PusScheduler {
|
||||
return false;
|
||||
}
|
||||
match self.tc_map.entry(time_stamp) {
|
||||
Entry::Vacant(e) => e.insert(vec![addr]),
|
||||
Entry::Occupied(mut v) => v.get_mut().push(addr),
|
||||
Entry::Vacant(e) => {
|
||||
e.insert(vec![addr]);
|
||||
},
|
||||
Entry::Occupied(mut v) => {
|
||||
v.get_mut().push(addr);
|
||||
},
|
||||
}
|
||||
true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user