'Purge old bad ips (jails and log files from database).
Currently it is timed out IP, whose time since last ban is several times out-dated (outDatedFactor is default 3).
Permanent banned ips will be never removed.'

def _purge_bips(self, cur):

    cur.execute('DELETE    FROM    bips    WHERE    timeofban    <    ?    and    bantime    !=    -1    and    (timeofban    +    (bantime    *    ?))    <    ?', ((int(MyTime.time()) - self._purgeAge), self._outDatedFactor, (int(MyTime.time()) - self._purgeAge)))
