Browse Source

[2172] set mem_info to None in OSX before overwriting

Jelte Jansen 12 years ago
parent
commit
be7f08f05a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib/python/isc/sysinfo/sysinfo.py

+ 1 - 0
src/lib/python/isc/sysinfo/sysinfo.py

@@ -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())