mirror of
https://github.com/gravitational/teleport
synced 2024-10-19 16:53:57 +00:00
Fix casting on 32 bits (#19481)
Fix for the 32bits arch introduced by this change: https://github.com/gravitational/teleport/pull/19406/files#diff-a3a7eaca752e77262c79c696fd2e46062cd411b204295927dde865d1638c539c
This commit is contained in:
parent
ce7ac3d621
commit
fc42dbb8df
|
@ -24,9 +24,5 @@ import (
|
|||
|
||||
// Source: os/stat_linux.go
|
||||
func GetAtime(fi os.FileInfo) time.Time {
|
||||
return timespecToTime(fi.Sys().(*syscall.Stat_t).Atim)
|
||||
}
|
||||
|
||||
func timespecToTime(ts syscall.Timespec) time.Time {
|
||||
return time.Unix(ts.Sec, ts.Nsec)
|
||||
return time.Unix(fi.Sys().(*syscall.Stat_t).Atim.Unix())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue