Skip to content

Tags: anxuanzi/oneuptime-infrastructure-agent-go

Tags

v1.0.1

Toggle v1.0.1's commit message
✨ Update CPU metrics calculation method and add test

The CPU metrics calculation method in cpu.go has been updated with a more accurate method, which involves getting CPU times at the start, waiting for a short interval, then getting CPU times again and calculating the difference. An additional function, totalCPUTime, has been implemented to facilitate this. A new test case for CPU usage calculation has also been added in cpu_test.go.

v1.0.0

Toggle v1.0.0's commit message
💚 Remove ARM architecture from .goreleaser.yaml

The ARM architecture was removed from the goreleaser configuration. Now, the application will no longer be built for this architecture, leaving only AMD64 and ARM64 architectures.