Increase the time we mark you as green or yellow.

One of Matt Goldstein's comments is that we often make you look
like you're not at your computer, even when you are, just because
you haven't checked Humbug for a while.

While it's important to have this be accurate, right now I think
we err on the side of showing you as not present. So I increased
some of the timeouts in an attempt to fix that.

(imported from commit 9fd8f432e6684ec1b33d1d932f37caa99c627959)
This commit is contained in:
Waseem Daher
2013-03-05 11:11:55 -05:00
parent e588323f5d
commit e662db9c68

View File

@@ -5,13 +5,13 @@ var exports = {};
Helpers for detecting user activity and managing user idle states
*/
/* 15 minutes after no activity, idle regardless of focus */
var DEFAULT_IDLE_TIMEOUT_MS = 15 * 60 * 1000;
/* 1 minute between keep-alive pings */
/* After this amount of no activity, mark you idle regardless of your focus */
var DEFAULT_IDLE_TIMEOUT_MS = 30 * 60 * 1000;
/* Time between keep-alive pings */
var ACTIVE_PING_INTERVAL_MS = 60 * 1000;
/* Timeouts for away and idle state */
var AWAY_THRESHOLD_SECS = 5 * 60;
var AWAY_THRESHOLD_SECS = 10 * 60;
var IDLE_THRESHOLD_SECS = DEFAULT_IDLE_TIMEOUT_MS / 1000;
/* Keep in sync with views.py:json_update_active_status() */