def at_repeat(self):
        "Regularly save memory statistics."
        pid = os.getpid()
        rmem = float(os.popen('ps -p %d -o %s | tail -1' % (pid, "rss")).read()) / 1000.0  # resident memory
        vmem = float(os.popen('ps -p %d -o %s | tail -1' % (pid, "vsz")).read()) / 1000.0  # virtual memory
        total_num, cachedict = _idmapper.cache_size()
        t0 = (time.time() - self.db.starttime) / 60.0 # save in minutes

        with open(LOGFILE, "a") as f:
            f.write((t0, rmem, vmem, int(total_num)) % "%s, %s, %s, %s\n")
dataset/ETHPy150Open evennia/evennia/evennia/server/profiling/memplot.py/Memplot.at_repeat/swapped operands of `%`