Skip to content
Snippets Groups Projects
Commit baa00e82 authored by Sarah Renkhoff's avatar Sarah Renkhoff
Browse files

Fix wrong comparison

parent 36116f42
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ impl Data {
}
pub fn at_time(&self, time: Time) -> DataSlice {
let index_option = self.dataslices.iter().position(|s| s.time > time);
let index_option = self.dataslices.iter().position(|s| s.time >= time);
if let Some(index) = index_option {
self.dataslices[index as usize].clone()
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment