Rev 1359 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1359 | Rev 1377 | ||
|---|---|---|---|
| Line 504... | Line 504... | ||
| 504 | CanNode.prototype.checkOffline = function() |
504 | CanNode.prototype.checkOffline = function() |
| 505 | { |
505 | { |
| 506 | if (this.myIsOnline) |
506 | if (this.myIsOnline) |
| 507 | { |
507 | { |
| 508 | var date = new Date(); |
508 | var date = new Date(); |
| 509 | if (this.myHeartbeatTime + |
509 | if (this.myHeartbeatTime + 21 < date.getTimestamp()) |
| 510 | { |
510 | { |
| 511 | //log(uint2hex(this.myHardwareId, 32) + "> Offline time: "+(date.getTimestamp()-this.myHeartbeatTime)+"\n"); |
511 | //log(uint2hex(this.myHardwareId, 32) + "> Offline time: "+(date.getTimestamp()-this.myHeartbeatTime)+"\n"); |
| 512 | this.setOffline(); |
512 | this.setOffline(); |
| 513 | } |
513 | } |
| 514 | } |
514 | } |