From 81a75bb28f77838bd5d10b832a0feb23bf34ef88 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 31 May 2011 18:08:48 +0000 Subject: [PATCH] os: Correct Ctime_ns calculation. From-SVN: r174501 --- libgo/go/os/stat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:] -- 2.30.2