reintroducing the 5k hour limit but placing it only in the function for calculating the average hour this time around. this is to prevent the average hour count from being skewed by players with a too high playercount. 5000 should be considered good enough hopefully
This commit is contained in:
parent
87c94a0f17
commit
1e1241cf05
@ -161,7 +161,12 @@ public int GetAveragePlayerActiveTimeServer()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
total_hours += g_iPlayerTimeServer[i];
|
||||
|
||||
//re-introducing the hour capacity but putting it here is better than putting it at the mysql query
|
||||
//at the time of making this change its only affeting me jenz and nobody else. this is meant to prevent
|
||||
//the average hour from being too skewed by high playtime people.
|
||||
int added_hours = g_iPlayerTimeServer[i] > 5000 ? 5000 : g_iPlayerTimeServer[i];
|
||||
total_hours += added_hours;
|
||||
total_players++;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user