fixed a bug where the field name was not capitalized hence not public, also deleted unnecessary getter

This commit is contained in:
lin committed 2026-10-06 13:52:11 +02:00
1 parent be44d008c7
commit 88b5ff98cd
3 files changed
+4 -8

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ func getWinUptime(uptime *windows.LazyProc) (UptimeInformation, error) {
uptimeSeconds := float64(uptimeMetric) / 1000.0
return UptimeInformation{uptime: uptimeSeconds}, nil
return UptimeInformation{Uptime: uptimeSeconds}, nil
}
func GetUptimeInformation() (UptimeInformation, error) {