Skip to content
Snippets Groups Projects
Commit 9b878686 authored by Federico Lolli's avatar Federico Lolli
Browse files

Fixed frequency misuse

parent 999469ba
No related branches found
No related tags found
No related merge requests found
......@@ -115,9 +115,9 @@ impl Executor {
// update time reference
prev_t = t;
t = prev_t + freq
t = prev_t + 1.0 / freq
}
self.last_timeref = Some(t);
self.last_timeref = Some(end_t);
} else {
return Err("Invalid time reference".to_string());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment