Closed govrin closed 1 month ago
golangci-lint said something about the file not being gci
-ed, but when I ran it locally it didn't show this error. I also tried to run gci
with the correct settings and it didn't fix the file. Can you run the CI again?
EDIT: Nevermind, found the problem :)
Great. Thanks a lot!
When
BootTimeWithContext
is called while cache is disabled, the value retrieved from reading the stat file isn't used. Also, I moved the call totime.Now()
closer to where theuptime
stat is read, to reduce the time between them. This still isn't perfect.