Skip to content

Commit

Permalink
Fix some OpenBSD build fallout from struct Machine changeset
Browse files Browse the repository at this point in the history
Cherry-picked build-relevant part of #1277
  • Loading branch information
natoscott committed Aug 30, 2023
1 parent a9740fa commit f4e4f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openbsd/OpenBSDMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void Machine_delete(Machine* super) {
}

static void OpenBSDMachine_scanMemoryInfo(OpenBSDMachine* this) {
Machine* host = &this->super;
Machine* super = &this->super;
const int uvmexp_mib[] = { CTL_VM, VM_UVMEXP };
struct uvmexp uvmexp;
size_t size_uvmexp = sizeof(uvmexp);
Expand Down Expand Up @@ -230,7 +230,7 @@ static void kernelCPUTimesToHtop(const u_int64_t* times, CPUData* cpu) {
}

static void OpenBSDMachine_scanCPUTime(OpenBSDMachine* this) {
Machine* host = &this->super;
Machine* super = &this->super;
u_int64_t kernelTimes[CPUSTATES] = {0};
u_int64_t avg[CPUSTATES] = {0};

Expand Down

0 comments on commit f4e4f78

Please sign in to comment.