Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61f624b

Browse files
authored
Merge pull request #1831 from niemp100/win32_cpu_values
Fix win32_SystemProcessorPerformanceInformation struct
2 parents ef5056a + 6f4ea78 commit 61f624b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cpu/cpu_windows.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ type win32_Processor struct { //nolint:revive //FIXME
3434
// additional fields documented here
3535
// https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/processor_performance.htm
3636
type win32_SystemProcessorPerformanceInformation struct { //nolint:revive //FIXME
37-
IdleTime int64 // idle time in 100ns (this is not a filetime).
38-
KernelTime int64 // kernel time in 100ns. kernel time includes idle time. (this is not a filetime).
39-
UserTime int64 // usertime in 100ns (this is not a filetime).
40-
DpcTime int64 // dpc time in 100ns (this is not a filetime).
41-
InterruptTime int64 // interrupt time in 100ns
42-
InterruptCount uint32
37+
IdleTime int64 // idle time in 100ns (this is not a filetime).
38+
KernelTime int64 // kernel time in 100ns. kernel time includes idle time. (this is not a filetime).
39+
UserTime int64 // usertime in 100ns (this is not a filetime).
40+
DpcTime int64 // dpc time in 100ns (this is not a filetime).
41+
InterruptTime int64 // interrupt time in 100ns
42+
InterruptCount uint64 // ULONG needs to be uint64
4343
}
4444

4545
const (

0 commit comments

Comments
 (0)