mirror of https://github.com/BOINC/boinc.git
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:
parent
dc15dac154
commit
79a1bc9772
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue