From ae93e286bda9d7d9f7912ac5002e0f1196aaf9c3 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 22 Jul 2022 09:41:58 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/repository.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index 6b72dd0ea..9ea99929c 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -639,7 +639,7 @@ func subscribeEvents() { eventbus.Subscribe(dejavu.EvtIndexWalkData, func(context map[string]interface{}, path string) { msg := fmt.Sprintf(Conf.Language(158), path) count++ - if 0 == count%32 { + if 0 == count%128 { util.SetBootDetails(msg) contextPushMsg(context, msg) } @@ -652,7 +652,7 @@ func subscribeEvents() { eventbus.Subscribe(dejavu.EvtIndexGetLatestFile, func(context map[string]interface{}, path string) { msg := fmt.Sprintf(Conf.Language(159), path) count++ - if 0 == count%32 { + if 0 == count%128 { util.SetBootDetails(msg) contextPushMsg(context, msg) } @@ -665,7 +665,7 @@ func subscribeEvents() { eventbus.Subscribe(dejavu.EvtIndexUpsertFile, func(context map[string]interface{}, path string) { msg := fmt.Sprintf(Conf.Language(160), path) count++ - if 0 == count%32 { + if 0 == count%64 { util.SetBootDetails(msg) contextPushMsg(context, msg) } @@ -679,7 +679,7 @@ func subscribeEvents() { eventbus.Subscribe(dejavu.EvtCheckoutWalkData, func(context map[string]interface{}, path string) { msg := fmt.Sprintf(Conf.Language(161), path) count++ - if 0 == count%32 { + if 0 == count%128 { util.SetBootDetails(msg) contextPushMsg(context, msg) } @@ -695,7 +695,7 @@ func subscribeEvents() { msg := fmt.Sprintf(Conf.Language(162), path) util.IncBootProgress(bootProgressPart, msg) count++ - if 0 == count%32 { + if 0 == count%64 { contextPushMsg(context, msg) } }) @@ -709,7 +709,7 @@ func subscribeEvents() { msg := fmt.Sprintf(Conf.Language(163), path) util.IncBootProgress(bootProgressPart, msg) count++ - if 0 == count%32 { + if 0 == count%64 { contextPushMsg(context, msg) } }) @@ -730,7 +730,7 @@ func subscribeEvents() { msg := fmt.Sprintf(Conf.Language(165), id[:7]) util.IncBootProgress(bootProgressPart, msg) count++ - if 0 == count%32 { + if 0 == count%8 { contextPushMsg(context, msg) } }) @@ -744,7 +744,7 @@ func subscribeEvents() { msg := fmt.Sprintf(Conf.Language(166), id[:7]) util.IncBootProgress(bootProgressPart, msg) count++ - if 0 == count%32 { + if 0 == count%8 { contextPushMsg(context, msg) } }) @@ -766,7 +766,7 @@ func subscribeEvents() { eventbus.Subscribe(dejavu.EvtCloudBeforeUploadFile, func(context map[string]interface{}, id string) { msg := fmt.Sprintf(Conf.Language(169), id[:7]) count++ - if 0 == count%32 { + if 0 == count%8 { util.SetBootDetails(msg) contextPushMsg(context, msg) } @@ -779,7 +779,7 @@ func subscribeEvents() { eventbus.Subscribe(dejavu.EvtCloudBeforeUploadChunk, func(context map[string]interface{}, id string) { msg := fmt.Sprintf(Conf.Language(170), id[:7]) count++ - if 0 == count%32 { + if 0 == count%8 { util.SetBootDetails(msg) contextPushMsg(context, msg) }