Skip to content

Commit

Permalink
fix bug in timeout calculation for consumer auditor shutdown (linkedi…
Browse files Browse the repository at this point in the history
  • Loading branch information
radai-rosenblatt authored Oct 5, 2017
1 parent 1633d1b commit 175e758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.0.12
version=0.0.13
org.gradle.daemon=false
org.gradle.parallel=false
org.gradle.jvmargs=-Xms512m -Xmx512m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public void run() {
_currentStats.close();
_nextStats.close();
_shutdown = true;
onClosed(_currentStats, _nextStats, Math.min(0, _shutdownDeadline - System.currentTimeMillis()));
long shutdownBudgetRemaining = _shutdownDeadline - System.currentTimeMillis();
onClosed(_currentStats, _nextStats, Math.max(0, shutdownBudgetRemaining));
}
} else {
LOG.info("Auto auditing is set to false. Automatic ticking is disabled.");
Expand Down

0 comments on commit 175e758

Please sign in to comment.