User:SQL/AIVStale

SQLBot calculates stale times based on active admins in the last hour. This is done using this query.

As active admins approaches 40, the stale timeframe will stretch to 8 hours.

As active admins approaches 80, the stale timeframe will shrink to 4 hours.

The actual function used here is ($active is a whole number which will be a result of that query, and presently $timeLimit is 6, reflecting the base stale time in hours):

This is based on watching the average active admins by hour over a long period.