ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Heartbeat__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Heartbeat__Monitor.java (file contents):
Revision 1.10 by tdb, Wed Mar 7 20:35:37 2001 UTC vs.
Revision 1.11 by tdb, Wed Mar 7 21:38:14 2001 UTC

# Line 135 | Line 135 | public class Heartbeat__Monitor extends MonitorSkeleto
135          // time since last heartbeat (seconds)
136          long timeSinceLastHB = (System.currentTimeMillis()/1000) - lastHeartbeat;
137          // time since (or until if negative) the expected heartbeat
138 <        long timeSinceExpectedHB = timeSinceLastHB + (long) hostHBinterval;
138 >        long timeSinceExpectedHB = timeSinceLastHB - (long) hostHBinterval;
139          
140          // best do a check in case the expected heartbeat is in the future
141          if(timeSinceExpectedHB < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines