Closed cantsin closed 2 years ago
Note to self: should probably refactor the runtime.GOOS
checks to be out of the hot path too. "Hot" here is relative, though, we only run these goroutines at most once a minute, but I'm a bit worried that the Powershell command takes a while to execute too.
Windows support for session-counter 🎉 Includes a smattering of bug fixes along the way.
A few notes:
lshw
.GetDeviceHash
-- this code could be clearer. In particular, the Powershell script generates JSON, which we unmarshal into aNetInfo
and then... move that data into a[]map[string]string
. Yeah.This includes a separate fake serial "fix" -- since I'm too lazy to regenerate an encrypted api key, I just truncated the fake serial for API submission. We should fix this, but... 😣