Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyanzhao committed Oct 20, 2020
1 parent a51bfb5 commit bfb28f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/hotkey_collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void hotkey_collector::terminate_by_timeout()
{
if (_collector_start_time == 0)
return;
if (dsn_now_s() - _collector_start_time >= FLAGS_hotkey_collector_max_work_time) {
if (dsn_now_s() >= _collector_start_time + FLAGS_hotkey_collector_max_work_time) {
ddebug_replica("hotkey collector work time is exhausted but no hotkey has been found");
terminate_colletor();
return;
Expand Down

0 comments on commit bfb28f8

Please sign in to comment.