Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -209,13 +209,16 @@ |
210 | 210 | return true; |
211 | 211 | } |
212 | 212 | |
213 | | - |
| 213 | + /** |
| 214 | + * @return timestamp |
| 215 | + */ |
214 | 216 | private static function getTimeoutDate() { |
215 | 217 | global $wgOnlineStatusBar_LogoutTime; |
216 | 218 | return wfTimestamp( TS_UNIX ) - $wgOnlineStatusBar_LogoutTime; |
217 | 219 | } |
218 | 220 | |
219 | 221 | /** |
| 222 | + * Delete old records from the table, this function is called frequently too keep it as small as possible |
220 | 223 | * @return int |
221 | 224 | */ |
222 | 225 | public static function DeleteOld() { |