Explorar o código

:art: Sync 计时

Liang Ding %!s(int64=3) %!d(string=hai) anos
pai
achega
c3f6c389fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      kernel/model/repository.go

+ 1 - 1
kernel/model/repository.go

@@ -488,6 +488,7 @@ func syncRepo(boot, exit, byHand bool) (err error) {
 		return
 		return
 	}
 	}
 
 
+	start := time.Now()
 	indexBeforeSync, err := indexRepoBeforeCloudSync(repo)
 	indexBeforeSync, err := indexRepoBeforeCloudSync(repo)
 	if nil != err {
 	if nil != err {
 		syncDownloadErrCount++
 		syncDownloadErrCount++
@@ -495,7 +496,6 @@ func syncRepo(boot, exit, byHand bool) (err error) {
 		return
 		return
 	}
 	}
 
 
-	start := time.Now()
 	cloudInfo, err := buildCloudInfo()
 	cloudInfo, err := buildCloudInfo()
 	if nil != err {
 	if nil != err {
 		return
 		return