Fixed bug: repeat build in Mac OS, change to check file ModTime insetad of event time

This commit is contained in:
Unknown 2013-08-15 12:52:32 +08:00
parent bf33c2b05c
commit 5486f6ee55
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ func getFileModTime(path string) int64 {
colorLog("[ERRO] Fail to open file[ %s ]", err)
return time.Now().Unix()
}
defer f.Close()
fi, err := f.Stat()
if err != nil {