mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 19:19:23 +08:00
init
This commit is contained in:
11
monitoring/uptime.go
Normal file
11
monitoring/uptime.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package monitoring
|
||||
|
||||
import (
|
||||
"github.com/shirou/gopsutil/host"
|
||||
)
|
||||
|
||||
func Uptime() (uint64, error) {
|
||||
|
||||
return host.Uptime()
|
||||
|
||||
}
|
Reference in New Issue
Block a user