Fix API calls

This commit is contained in:
Andrew Case
2024-11-02 15:35:40 -05:00
parent b6406ab2a0
commit 076fbf2c54
2 changed files with 2 additions and 2 deletions
@@ -236,7 +236,7 @@ class PIDHashTable(plugins.PluginInterface):
self, decorate_comm: bool = False
) -> interfaces.objects.ObjectInterface:
for task in self.get_tasks():
offset, pid, tid, ppid, name = pslist.PsList.get_task_fields(
offset, pid, tid, ppid, name, _ = pslist.PsList.get_task_fields(
task, decorate_comm
)
fields = format_hints.Hex(offset), pid, tid, ppid, name
@@ -103,7 +103,7 @@ class PsTree(interfaces.plugins.PluginInterface):
row = pslist.PsList.get_task_fields(task, decorate_comm)
# update the first element, the offset, in the row tuple to use format_hints.Hex
# as a simple int is returned from get_task_fields.
row = (format_hints.Hex(row[0]),) + row[1:]
row = (format_hints.Hex(row[0]),) + row[1:-1]
tid = task.pid
yield (self._levels[tid] - 1, row)