bugfix repair_fileinfo

This commit is contained in:
s_jqzhang 2019-02-26 21:26:11 +08:00
parent 8070314f11
commit 3de7ce16a1

View File

@ -925,7 +925,10 @@ func (this *Server) RepairFileInfoFromFile() {
Path: strings.Replace(file_path, "\\", "/", -1),
Md5: sum,
TimeStamp: fi.ModTime().Unix(),
Peers: []string{this.host},
OffSet: -1,
}
log.Info(fileInfo)
this.SaveFileMd5Log(&fileInfo, CONST_FILE_Md5_FILE_NAME)
}
}