Skip to content

Commit

Permalink
Update vmtop.py to fix memory int calc
Browse files Browse the repository at this point in the history
  • Loading branch information
astar10239 authored Dec 3, 2024
1 parent d8140e0 commit 0f611cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def get_vm_info(self):
elif cmdline[i].startswith("-name"):
self.name = cmdline[i + 1]
elif cmdline[i] == "-m":
self.mem_allocated = int(cmdline[i + 1])
self.mem_allocated = int(str(cmdline[i + 1]).replace('k', '').replace('size=', ''))
elif cmdline[i] == "-smp":
self.total_vcpu_count = int(cmdline[i + 1].split(",")[0])

Expand Down

0 comments on commit 0f611cb

Please sign in to comment.