Skip to content

Commit

Permalink
secondsDifference was wrong calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
markusstoll committed Apr 24, 2014
1 parent b4f7d5f commit f71608e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ public void sendDeathNotificationEmail() {
long cutOffTime = _lastRegistration.getTime() + lifebeatCheckInterval();
String assumedToBeDead = "";
if (currentTime.getTime() > cutOffTime) {
long secondsDifference = (currentTime.getTime() - cutOffTime) / 1000;
assumedToBeDead = "The app did not respond for " + secondsDifference + "seconds " +
long secondsDifference = (currentTime.getTime() - _lastRegistration.getTime()) / 1000;
assumedToBeDead = "The app did not respond for " + secondsDifference + " seconds " +
"which is greater than the allowed threshold of " + lifebeatCheckInterval() + " seconds " +
"(Lifebeat Interval * WOAssumeApplicationIsDeadMultiplier) so it is assumed to be dead.\n";
}
Expand Down

0 comments on commit f71608e

Please sign in to comment.