Skip to content

Commit

Permalink
Revert unintentional change while rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSaVioR committed Dec 6, 2019
1 parent 698aa51 commit 47dfca5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ trait ProgressReporter extends Logging {
currentTriggerEndTimestamp = triggerClock.getTimeMillis()

val executionStats = extractExecutionStats(hasNewData, runBatch)
val processingTimeSec =
(currentTriggerEndTimestamp - currentTriggerStartTimestamp).toDouble / MILLIS_PER_SECOND
val processingTimeSec = Math.max(1L,
currentTriggerEndTimestamp - currentTriggerStartTimestamp).toDouble / MILLIS_PER_SECOND

val inputTimeSec = if (lastTriggerStartTimestamp >= 0) {
(currentTriggerStartTimestamp - lastTriggerStartTimestamp).toDouble / MILLIS_PER_SECOND
Expand Down

0 comments on commit 47dfca5

Please sign in to comment.