fix the type .

This commit is contained in:
WAKAYAMA Shirou 2014-05-18 23:45:54 +09:00
parent 6d379d4a18
commit 5f37278918
1 changed files with 5 additions and 1 deletions

View File

@ -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