Browse Source

[2121] Fix member variable names

Mukund Sivaraman 13 years ago
parent
commit
5255dd6b43
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/python/isc/sysinfo/sysinfo.py

+ 2 - 2
src/lib/python/isc/sysinfo/sysinfo.py

@@ -345,8 +345,8 @@ class SysInfoOpenBSD(SysInfoBSD):
             l = s.decode('utf-8').strip()
             r = re.match('^total: (\d+) 1K-blocks allocated, (\d+) used, (\d+) available', l)
             if r:
-                self._swap_total = int(r.group(1).strip()) * 1024
-                self._swap_free = int(r.group(3).strip()) * 1024
+                self._mem_swap_total = int(r.group(1).strip()) * 1024
+                self._mem_swap_free = int(r.group(3).strip()) * 1024
         except (subprocess.CalledProcessError, OSError):
             pass