Skip to content

Commit

Permalink
small fix to delay buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Oct 27, 2015
1 parent 7c86a6a commit 101b6b2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -444,10 +444,10 @@ void SystemDefaultImplementation::storeDelay(unsigned int expr_id, double expr_v

void SystemDefaultImplementation::storeTime(double time)
{
// delete up to last value <= time - _delay_max
// delete up to last value < time - _delay_max
buffer_type::iterator first = _time_buffer.begin();
buffer_type::iterator pos = find_if(first, _time_buffer.end(),
bind2nd(std::greater<double>(),
bind2nd(std::greater_equal<double>(),
time - _delay_max));
if (pos != first && --pos != first) {
difference_type n = std::distance(first, pos);
Expand Down

0 comments on commit 101b6b2

Please sign in to comment.