From 9c7deabf9476939e0766fe6bd69b9a7adfeeb48b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 22 Apr 2022 15:24:02 +0200 Subject: [PATCH] Ignore change on last edge --- kernel/fstdata.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index c99bc61c3..2bec58bcf 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -201,10 +201,11 @@ void FstData::reconstructAllAtTimes(std::vector &signal, uint64_t sta fstReaderSetUnlimitedTimeRange(ctx); fstReaderSetFacProcessMaskAll(ctx); fstReaderIterBlocks2(ctx, reconstruct_clb_attimes, reconstruct_clb_varlen_attimes, this, nullptr); - past_data = last_data; - callback(last_time); - if (last_time!=end_time) - callback(end_time); + if (last_time!=end_time) { + past_data = last_data; + callback(last_time); + } + callback(end_time); } std::string FstData::valueOf(fstHandle signal) -- 2.30.2