From 6f4ea788d9d2b7ba0907e4026f521f5c79de63c8 Mon Sep 17 00:00:00 2001 From: Niklas Empt Date: Tue, 1 Apr 2025 15:16:27 +0200 Subject: [PATCH] Fix win32_SystemProcessorPerformanceInformation struct --- cpu/cpu_windows.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cpu/cpu_windows.go b/cpu/cpu_windows.go index 3ca8281..de86c04 100644 --- a/cpu/cpu_windows.go +++ b/cpu/cpu_windows.go @@ -34,12 +34,12 @@ type win32_Processor struct { //nolint:revive //FIXME // additional fields documented here // https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/processor_performance.htm type win32_SystemProcessorPerformanceInformation struct { //nolint:revive //FIXME - IdleTime int64 // idle time in 100ns (this is not a filetime). - KernelTime int64 // kernel time in 100ns. kernel time includes idle time. (this is not a filetime). - UserTime int64 // usertime in 100ns (this is not a filetime). - DpcTime int64 // dpc time in 100ns (this is not a filetime). - InterruptTime int64 // interrupt time in 100ns - InterruptCount uint32 + IdleTime int64 // idle time in 100ns (this is not a filetime). + KernelTime int64 // kernel time in 100ns. kernel time includes idle time. (this is not a filetime). + UserTime int64 // usertime in 100ns (this is not a filetime). + DpcTime int64 // dpc time in 100ns (this is not a filetime). + InterruptTime int64 // interrupt time in 100ns + InterruptCount uint64 // ULONG needs to be uint64 } const (