mem changes

This commit is contained in:
Marc Mance
2024-07-31 12:55:59 -04:00
parent 138ac289cc
commit 97a7135985

View File

@@ -118,12 +118,11 @@ def scaleMemstat():
mem = meminmeg
mem_wired = mem[0]
mem_free = mem[1]
mem_active = mem[2]
mem_inactive = mem[3]
mem_used = mem[2]
lineData = [mem_active, mem_inactive, mem_wired, mem_free]
lineData = [mem_used, mem_free]
print(f"mem: {lineData}")
if lineData:
with open(filename, "a", newline="") as csvfile:
@@ -153,12 +152,10 @@ def coreMemstat():
mem = meminmeg
mem_active = mem[0]
mem_inactive = mem[1]
mem_wired = mem[2]
mem_used = mem[0]
mem_free = mem[3]
lineData = [mem_active, mem_inactive, mem_wired, mem_free]
lineData = [mem_used, mem_free]
if lineData:
with open(filename, "a", newline="") as csvfile: