lindleycb/meteor-stale-session — pull request #2 by Meloncon (2013-11-27 19:48:21+00:00)
Title: Added .getTime() to insure a millisecond comparison to the heartbeat

My heartbeat, by default, was being stored in milliseconds. The overdueTimestamp seems to be in seconds. Comparison failed every time for me. Adding ".getTime()" insures that the overdueTimeout variable returns a value in milliseconds to the Mongo update routine. This should compare the heartbeat-in-milliseconds to overdueTimeout-in-milliseconds, instead of comparing milliseconds to seconds.