diff --git a/server/driver/history.h b/server/driver/history.h index f5e91e8c..6c4fb688 100644 --- a/server/driver/history.h +++ b/server/driver/history.h @@ -80,6 +80,13 @@ public: return {}; } + if (at_timestamp_ns - data.back().at_timestamp_ns > 1'000'000'000) + { + // stale data + data.clear(); + return {}; + } + if (data.size() == 1) { return {ex, data.front()};