def httpapi(self, arg, opts):
        sc = HttpAPIStatsCollector()
        headers = ["#Item", "Value"]

        table = []
        for k, v in sc.get().getStats().iteritems():
            if isinstance(v, dict):
                v = json.dumps(v)

            row = []
            row.append(k % '#%s')
            if k[-3:] == '_at':
                row.append(formatDateTime(v))
            else:
                row.append(v)

            table.append(row)

        self.protocol.sendData(tabulate(table, headers, tablefmt="plain", numalign="left").encode('ascii'))
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/statsm.py/StatsManager.httpapi/swapped operands of `%`