diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-31 18:08:48 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-31 18:08:48 +0000 |
commit | 05be03c5cacd1c4605daf9cb4275a12d7a527ee4 (patch) | |
tree | 4c77247ead824d23d67283fbd7ddb96675820967 /libgo | |
parent | 4c90aa9a70efc04a3ddfe25f59b832e22f69a8bc (diff) | |
download | gcc-05be03c5cacd1c4605daf9cb4275a12d7a527ee4.tar.gz |
os: Correct Ctime_ns calculation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174501 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/os/stat.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/os/stat.go b/libgo/go/os/stat.go index d6c7a54ed83..8eb4ab4391d 100644 --- a/libgo/go/os/stat.go +++ b/libgo/go/os/stat.go @@ -25,7 +25,7 @@ func fileInfoFromStat(name string, fi *FileInfo, lstat, stat *syscall.Stat_t) *F fi.Blocks = int64(stat.Blocks) fi.Atime_ns = int64(stat.Atime.Sec)*1e9 + int64(stat.Atime.Nsec) fi.Mtime_ns = int64(stat.Mtime.Sec)*1e9 + int64(stat.Mtime.Nsec) - fi.Ctime_ns = int64(stat.Ctime.Sec)*1e9 + int64(stat.Atime.Nsec) + fi.Ctime_ns = int64(stat.Ctime.Sec)*1e9 + int64(stat.Ctime.Nsec) for i := len(name)-1; i >= 0; i-- { if name[i] == '/' { name = name[i+1:] |