Fix off-by-one error on timeouts for input history echo updates

This commit is contained in:
John Hood
2016-10-28 02:00:20 -04:00
parent 3e414c46b3
commit 9c55198635
+1 -1
View File
@@ -142,7 +142,7 @@ bool Complete::set_echo_ack( uint64_t now )
for ( input_history_type::const_iterator i = input_history.begin(); for ( input_history_type::const_iterator i = input_history.begin();
i != input_history.end(); i != input_history.end();
i++ ) { i++ ) {
if ( i->second < now - ECHO_TIMEOUT ) { if ( i->second <= now - ECHO_TIMEOUT ) {
newest_echo_ack = i->first; newest_echo_ack = i->first;
} }
} }