Commit be7f08f0 authored by Jelte Jansen's avatar Jelte Jansen

[2172] set mem_info to None in OSX before overwriting

parent 97ad1206
......@@ -425,6 +425,7 @@ class SysInfoOSX(SysInfoFreeBSDOSX):
# was read. However, on OSX, physmem is not necessarily the correct
# value. But since it does not fail and does work on most BSD's, it's
# left in the base class and overwritten here
self._mem_total = None
try:
s = subprocess.check_output(['sysctl', '-n', 'hw.memsize'])
self._mem_total = int(s.decode('utf-8').strip())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment