From aeb664c7cd0792dace18130af5ecd3b595eca175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=B6=E7=88=B8?= Date: Mon, 2 Dec 2019 23:28:30 +0800 Subject: [PATCH] uptime & bootTime --- cmd/playground/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/playground/main.go b/cmd/playground/main.go index 11faae4..97c3862 100644 --- a/cmd/playground/main.go +++ b/cmd/playground/main.go @@ -17,7 +17,7 @@ import ( func main() { // 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 mv, _ := mem.VirtualMemory() ms, _ := mem.SwapMemory()