def garbageCollect(self, force=False):
        #
        #     If the total size of the session cache exceeds the max number
        #     then make space by removing the expired ones.
        #     If none of them was expired, then keep them (we can allow to
        #     run over limit for a while because we don't want to loose information
        #     of running sessions.
        #
        if force or (100 % len(self)) == 0:                    # every now and then, clean the cache
            for keyv, session in self.items():                # Get key, expiration time an item
                if session.expired():                        # Expired?
                    self.delete(keyv)                        # Delete expired session.
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/toolbox/session/sessionmanager.py/SessionManager.garbageCollect/swapped operands of `%`