From 64d5ade785816e8a221556bd463a8da42c854899 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 4 Jul 2022 11:32:02 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=88=86=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/repository.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index 205e28163..4b87fdb68 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -286,7 +286,7 @@ func syncRepo(boot, exit, byHand bool) { syncContext := map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBar} _, mergeUpserts, mergeRemoves, _, - uploadFileCount, uploadChunkCount, downloadFileCount, downloadChunkCount, + uploadFileCount, downloadFileCount, uploadChunkCount, downloadChunkCount, uploadBytes, downloadBytes, err := repo.Sync(cloudInfo, syncContext) elapsed := time.Since(start) @@ -305,11 +305,12 @@ func syncRepo(boot, exit, byHand bool) { if exit { ExitSyncSucc = 1 } + planSyncAfter(fixSyncInterval) return } util.PushStatusBar(fmt.Sprintf(Conf.Language(149), elapsed.Seconds())) Conf.Sync.Synced = util.CurrentTimeMillis() - msg := fmt.Sprintf(Conf.Language(150), uploadFileCount, uploadChunkCount, downloadFileCount, downloadChunkCount, byteCountSI(uploadBytes), byteCountSI(downloadBytes)) + msg := fmt.Sprintf(Conf.Language(150), uploadFileCount, downloadFileCount, uploadChunkCount, downloadChunkCount, byteCountSI(uploadBytes), byteCountSI(downloadBytes)) Conf.Sync.Stat = msg if 1 > len(mergeUpserts) && 1 > len(mergeRemoves) { // 没有数据变更