cleanup for files in scripts/perf

This commit is contained in:
bharnden 2018-10-12 10:13:02 -07:00
parent 5c7f9b7dc4
commit b81cbf2a86
8 changed files with 14 additions and 12 deletions

View file

@ -181,7 +181,7 @@ def collectservermems():
Return memory (total, free) in KB from proc/meminfo.
"""
lines = readfile("/proc/meminfo")
mem = [x.plit() for x in lines[0:2]]
mem = [x.split() for x in lines[0:2]]
return [int(x) for x in zip(*mem)[1]]
@ -584,6 +584,8 @@ def main():
cyclecount = 0
while True:
cputimea = collectservercputimes()
if options.session is not None:
nodesa = logsession.getnodemetrics("a")
time.sleep(options.interval)
cputimeb = collectservercputimes()
mems = collectservermems()