From 3b4a5a6424282a2e9808af76e3d303e179e7ac3c Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Wed, 8 Nov 2017 19:35:14 +0800 Subject: [PATCH] Update ssd_channel.cpp `sched_time` shouldn't be earlier than `start_time`. If it's the last one to be scheduled, it's 'sched_time' should be it's `start_time`. --- ssd_channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssd_channel.cpp b/ssd_channel.cpp index 24dba10..356b89e 100644 --- a/ssd_channel.cpp +++ b/ssd_channel.cpp @@ -170,7 +170,7 @@ enum status Channel::lock(double start_time, double duration, Event &event) /* schedule after all events in table */ if(sched_time == BUS_CHANNEL_FREE_FLAG) - sched_time = timings.back().unlock_time; + sched_time = start_time; } /* write scheduling info in free table slot */