From 15d30f6d21889eada25f678e10f7287c8e37ad70 Mon Sep 17 00:00:00 2001 From: Samuel Venable Date: Sat, 6 Jan 2024 00:17:09 -0700 Subject: [PATCH] Update OpenBSDProcessTable.c --- openbsd/OpenBSDProcessTable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsd/OpenBSDProcessTable.c b/openbsd/OpenBSDProcessTable.c index 26c6c52b6..f2980a4bf 100644 --- a/openbsd/OpenBSDProcessTable.c +++ b/openbsd/OpenBSDProcessTable.c @@ -45,7 +45,7 @@ ProcessTable* ProcessTable_new(Machine* host, Hashtable* pidMatchList) { } void ProcessTable_delete(Object* cast) { - OpenBSDProcessTable* this = (OpenBSDProcessTable*) super; + OpenBSDProcessTable* this = (OpenBSDProcessTable*) cast; ProcessTable_done(&this->super); free(this); } @@ -130,7 +130,7 @@ static double getpcpu(const OpenBSDMachine* ohost, const struct kinfo_proc* kp) } static void OpenBSDProcessTable_scanProcs(OpenBSDProcessTable* this) { - Machine* host = this->super.host; + Machine* host = this->super.super.host; OpenBSDMachine* ohost = (OpenBSDMachine*) host; const Settings* settings = host->settings; const bool hideKernelThreads = settings->hideKernelThreads;