From bc5012c2203ac7bcae27290696ae63367f6cd777 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Tue, 4 Nov 2025 10:57:27 +0100 Subject: [PATCH] fix --- argus/src/core/signals/interpolation.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/argus/src/core/signals/interpolation.rs b/argus/src/core/signals/interpolation.rs index c11ea47..373a72d 100644 --- a/argus/src/core/signals/interpolation.rs +++ b/argus/src/core/signals/interpolation.rs @@ -33,12 +33,12 @@ impl InterpolationMethod for Constant { /// If the signal does not have a value at a given point, a fixed value is returned pub struct DefaultFalse; -impl InterpolationMethod for DefaultFalse { +impl InterpolationMethod for DefaultFalse { fn at(a: &Sample, b: &Sample, time: Duration) -> Option { if time == b.time { - Some(b.value.clone()) - } else if a.time <= time && time < b.time { - Some(a.value.clone()) + Some(b.value) + } else if time == a.time { + Some(a.value) } else { Some(false) }