Changed the algorithm by which UOTD is chosen to pick a new UOTD the first time the function is run after a day change instead of 24 hours from when the last UOTD was chosen.

svn path=/trunk/boinc/; revision=2028
This commit is contained in:
David Anderson 2003-08-08 01:00:35 +00:00
parent dc15dac154
commit 79a1bc9772
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ while ($thread = mysql_fetch_assoc($result)) {
$forum = mysql_fetch_assoc($result3);
}
// Helpdesk activiy is scaled linearly by the number of days since the last post.
// Helpdesk activity is scaled linearly by the number of days since the last post.
if ($forum != NULL && $forum['is_helpdesk']) {
$timeDiff = $currentTime - $thread['timestamp'];
$dayDiff = floor($timeDiff / 86400); // 86400 = # of seconds in a day;