提交 5f372789 编写于 作者: W WAKAYAMA Shirou

fix the type .

上级 6d379d4a
......@@ -38,11 +38,15 @@ func HostInfo() (*HostInfoStat, error) {
ret.PlatformFamily = family
ret.PlatformVersion = version
}
uptime, err := BootTime()
if err == nil {
ret.Uptime = uptime
}
return ret, nil
}
func BootTime() (int64, error) {
func BootTime() (uint64, error) {
sysinfo := &syscall.Sysinfo_t{}
if err := syscall.Sysinfo(sysinfo); err != nil {
return 0, err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册