Add missing `self` argument to `read_cpu_time_file`.

This commit is contained in:
Hristo Georgiev 2020-05-16 11:09:09 +01:00
parent 5bd1394a64
commit cda1559ed7
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ class Host:
verbose_echo(0, "Couldn't kill pid %d" % self.pid) verbose_echo(0, "Couldn't kill pid %d" % self.pid)
self.pid = 0 self.pid = 0
def read_cpu_time_file(filename): def read_cpu_time_file(self, filename):
try: try:
return float(open(self.dir(filename)).readline()) return float(open(self.dir(filename)).readline())
except: except: