It only counts 10 minutes from the last activity.
It started counting when we upgraded to the SMF software (about a year ago ~400 days I'd guess.
It just counts the time you are active, and keeps counting, 1 hr is 60 active minutes, its a running total.
2nd post on the first page. However, it's not 100% accurate, the code below is EXACTLY what happens.
// Mark your session as being logged.
$_SESSION['log_time'] = time();
// Well, they are online now.
if (empty($_SESSION['timeOnlineUpdated']))
$_SESSION['timeOnlineUpdated'] = time();
// Set their login time, if not already done within the last minute.
if (SMF != 'SSI' && !empty($user_info['last_login']) && $user_info['last_login'] < time() - 60)
{
// Don't count longer than 15 minutes.
if (time() - $_SESSION['timeOnlineUpdated'] > 60 * 15)
$_SESSION['timeOnlineUpdated'] = time();
$user_settings['totalTimeLoggedIn'] += time() - $_SESSION['timeOnlineUpdated'];
updateMemberData($ID_MEMBER, array('lastLogin' => time(), 'memberIP' => '\'' . $user_info['ip'] . '\'', 'memberIP2' => '\'' . $_SERVER['BAN_CHECK_IP'] .
if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
cache_put_data('user_settings-' . $ID_MEMBER, $user_settings, 60);
$user_info['total_time_logged_in'] += time() - $_SESSION['timeOnlineUpdated'];
$_SESSION['timeOnlineUpdated'] = time();
}
It's basically this:
-You access the forum (and are already logged in)
---Your total time does not go up
-You then access a thread 5 minutes later
---Your total time goes up by 5 minutes
-You then access a thread 30 seconds later
---You total time does not go up (less than 60 seconds from the last time update)
-You then access a thread 45 seconds later
---Your total time goes up by 75 seconds (30 + 45 = 75 seconds, which is more than 60 seconds, which means your time goes up).
-You then access a thread 16 minutes later
---Your total time does not go up (the limit is 15 minutes between actions, at this point, you've started a new "session").
-You then access a thread 7 minutes later
---Your total time goes up by 7 minutes.
TLDR;
So, one click >1 min and <15 min from the last click adds time.