🎨 分屏

This commit is contained in:
Liang Ding 2022-07-04 11:32:02 +08:00
parent e12c004036
commit 64d5ade785
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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) { // 没有数据变更