mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 10:09:05 +02:00
system: read the boot time from the kernel on every scrape (#2690)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -29,7 +29,6 @@ var (
|
||||
|
||||
procGetDynamicTimeZoneInformationSys = modkernel32.NewProc("GetDynamicTimeZoneInformation")
|
||||
procKernelLocalFileTimeToFileTime = modkernel32.NewProc("LocalFileTimeToFileTime")
|
||||
procGetTickCount = modkernel32.NewProc("GetTickCount64")
|
||||
procOpenJobObject = modkernel32.NewProc("OpenJobObjectW")
|
||||
procIsProcessInJob = modkernel32.NewProc("IsProcessInJob")
|
||||
)
|
||||
@@ -81,9 +80,3 @@ func LocalFileTimeToFileTime(localFileTime, utcFileTime *windows.Filetime) uint3
|
||||
|
||||
return uint32(ret)
|
||||
}
|
||||
|
||||
func GetTickCount64() uint64 {
|
||||
ret, _, _ := procGetTickCount.Call()
|
||||
|
||||
return uint64(ret)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user