projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f718d44
)
os: Correct Ctime_ns calculation.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Tue, 31 May 2011 18:08:48 +0000
(18:08 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Tue, 31 May 2011 18:08:48 +0000
(18:08 +0000)
From-SVN: r174501
libgo/go/os/stat.go
patch
|
blob
|
history
diff --git
a/libgo/go/os/stat.go
b/libgo/go/os/stat.go
index d6c7a54ed83b2291b83f6a736e4f1e81f0db6814..8eb4ab4391d5b66aac5276a8a73659c48a0bb60a 100644
(file)
--- 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.
A
time.Nsec)
+ fi.Ctime_ns = int64(stat.Ctime.Sec)*1e9 + int64(stat.
C
time.Nsec)
for i := len(name)-1; i >= 0; i-- {
if name[i] == '/' {
name = name[i+1:]