uptime & bootTime
This commit is contained in:
parent
4b9bb18aa0
commit
aeb664c7cd
@ -17,7 +17,7 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
// Host info
|
// Host info
|
||||||
hi, _ := host.Info()
|
hi, _ := host.Info()
|
||||||
fmt.Printf("「HostInfo」 platform:%v platformVersion:%v kernelArch:%v virtualizationSystem:%v\n", hi.OS, hi.PlatformVersion, hi.KernelArch, hi.VirtualizationSystem)
|
fmt.Printf("「HostInfo」 platform:%v platformVersion:%v kernelArch:%v virtualizationSystem:%v uptime:%v boottime:%v\n", hi.OS, hi.PlatformVersion, hi.KernelArch, hi.VirtualizationSystem, hi.Uptime, hi.BootTime)
|
||||||
// Memory
|
// Memory
|
||||||
mv, _ := mem.VirtualMemory()
|
mv, _ := mem.VirtualMemory()
|
||||||
ms, _ := mem.SwapMemory()
|
ms, _ := mem.SwapMemory()
|
||||||
|
Loading…
Reference in New Issue
Block a user