def fetch_memory_usage(self):
        metrics = {"MemFree": "memory_free", "Buffers": "buffers", "Cached": "cached", "SwapFree": "swap_free", "Slab": "slab"}
        data = []
        now = int(time())
        raw_data = self.read_file("/proc/meminfo")
        for line in raw_data:
            metric, i = line.split(":")
            value = int(i.strip().strip(" kB")) * 1024
            if metric in metrics.keys():
                data.append((metrics[metric], value, now) % "memory.%s %d %d")
        return data
dataset/ETHPy150Open tmm1/graphite/contrib/demo-collector.py/Host.fetch_memory_usage/swapped operands of `%`