Help | Contact Us
NukeWorker.com
NukeWorker Menu Most Time Online honeypot

Author Topic: Most Time Online  (Read 59522 times)

0 Members and 1 Guest are viewing this topic.

Offline Marlin

  • Forum Staff
  • *
  • Posts: 10938
  • Total likes: 471
  • Karma: 5123
  • Gender: Male
  • Stop Global Whining!!!
Re: Most Time Online
« Reply #50 on: May 10, 2016, 10:39 »
I do leave myself logged onto NukeWorker and scan periodically for new posts that would explain a lot. Not that I have not spent plenty of time in discussions.

« Last Edit: May 10, 2016, 10:41 by Marlin »

Offline Rennhack

Re: Most Time Online
« Reply #51 on: May 10, 2016, 07:21 »
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.

Code: [Select]
  // 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.
« Last Edit: May 10, 2016, 07:25 by Rennhack »

Offline Marlin

  • Forum Staff
  • *
  • Posts: 10938
  • Total likes: 471
  • Karma: 5123
  • Gender: Male
  • Stop Global Whining!!!
Re: Most Time Online
« Reply #52 on: May 12, 2016, 09:14 »
2nd post on the first page.  However, it's not 100% accurate, the code below is EXACTLY what happens.

I liked NN's description better I didn't need calculus and a super computer to figure it out.  ;D

Offline Rennhack

Re: Most Time Online
« Reply #53 on: May 13, 2016, 04:47 »

So, one click >1 min and <15 min from the last click adds time.


Offline Rennhack

Re: Most Time Online
« Reply #54 on: Dec 04, 2017, 06:18 »
I think about Dave often, and the contributions he made to the site.  Here is another reminder. Oh, and Nuclear NASCAR overcame Mike McFarlin, but they are still fairly neck n neck.



HydroDave63    157d 13h 31m
Marlin    142d 20h 58m
RDTroja    101d 12h 52m
GLW    97d 1h 51m
Rennhack    76d 14h 9m
Nuclear NASCAR    70d 2h 6m
Mike McFarlin    70d 1h 41m

Gamecock    64d 8h 26m
UncaBuffalo    61d 11h 32m
Drayer    52d 22h 58m
« Last Edit: Dec 04, 2017, 06:25 by Rennhack »

Offline SloGlo

  • meter reader
  • Very Heavy User
  • *****
  • Posts: 5563
  • Total likes: 167
  • Karma: 2632
  • Gender: Male
  • trust me, i'm an hp
Re: Most Time Online
« Reply #55 on: Dec 05, 2017, 11:00 »
fine ally! a list of idlers eye yam knot awn!
« Last Edit: Dec 05, 2017, 11:01 by SloGlo »
quando omni flunkus moritati

dubble eye, dubble yew, dubble aye!

dew the best ya kin, wit watt ya have, ware yinze are!

Offline Rennhack

Re: Most Time Online
« Reply #56 on: Sep 05, 2019, 05:20 »
Most Time Online

HydroDave63     157d 13h 31m
Marlin     154d 4h 54m
RDTroja     103d 18h 4m
GLW     103d 4h 49m
Rennhack     78d 16h 19m
Nuclear NASCAR     70d 19h 31m
Mike McFarlin     70d 3h 11m
Gamecock     64d 8h 26m
UncaBuffalo     61d 13h 12m
Drayer     52d 23h 20m

 


NukeWorker ™ is a registered trademark of NukeWorker.com ™, LLC © 1996-2019 All rights reserved.
All material on this Web Site, including text, photographs, graphics, code and/or software, are protected by international copyright/trademark laws and treaties. Unauthorized use is not permitted. You may not modify, copy, reproduce, republish, upload, post, transmit or distribute, in any manner, the material on this web site or any portion of it. Doing so will result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.
Privacy Statement | Terms of Use | Code of Conduct | Spam Policy | Advertising Info | Contact Us | Forum Rules | Password Problem?