Use Int64 to avoid potential integer overflow .
Merge pull request #33 from gseitz/fix_heartbeat_overflow

Use Int64 to avoid potential integer overflow .