Rename file_contents to file_columns

This commit is contained in:
Ben Nuttall
2017-03-15 13:16:33 +00:00
parent d05c36330b
commit 9e47e7648c

View File

@@ -212,8 +212,8 @@ class LoadAverage(InternalDevice):
Returns the current load average Returns the current load average
""" """
with io.open(self.load_average_file, 'r') as f: with io.open(self.load_average_file, 'r') as f:
file_contents = f.readline().strip().split() file_columns = f.readline().strip().split()
return float(file_contents[self._load_average_file_column]) return float(file_columns[self._load_average_file_column])
@property @property
def value(self): def value(self):