-#
-# mem.py
-#
-# Get instantaneous memory statistics (installed, total, free, available)
-#
+"""
+Get instantaneous memory statistics (installed, total, free, available)
+"""
import re
def __init__(self):
super().__init__()
self.name = "mem"
- self.info = "Get instantaneous memory statistics (installed, total, free, available)"
+ self.info = "Get instantaneous memory statistics "
+ "(installed, total, free, available)"
def parse_log(self):
matches = line_regex.findall(line)
if len(matches) > 0:
- logger.debug("Detected {0} memory of {1} kB".format(matches[0][0].lower(), matches[0][1]))
- table.add_row(Row([Column(matches[0][0]), Column(parsesize(float(matches[0][1])*1000))]))
+ logger.debug("Detected {0} memory of {1} kB".
+ format(matches[0][0].lower(), matches[0][1]))
+ table.add_row(Row([Column(matches[0][0]),
+ Column(parsesize(float(matches[0][1])*1000))]))
table.align_column(0, "right")
section.append_table(table)