From a64b6da3af55d691e8838e0ae54c460d2dcc1189 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 20 Jul 2024 15:35:19 +0800 Subject: [PATCH] 1 --- server/light_backtask/task/contribution.go | 14 ++++++++++++-- third_party/q5 | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/server/light_backtask/task/contribution.go b/server/light_backtask/task/contribution.go index cc42173e..0540d428 100644 --- a/server/light_backtask/task/contribution.go +++ b/server/light_backtask/task/contribution.go @@ -1,7 +1,7 @@ package task import ( - + "f5" ) type contribution struct { @@ -9,8 +9,18 @@ type contribution struct { } func (this* contribution) init() { - + go this.calc() } func (this* contribution) unInit() { } + +func (this* contribution) stat(time int64) { +} + +func (this* contribution) calc() { + for true { + nowTime := f5.GetApp().GetRealSeconds() + this.stat(nowTime) + } +} diff --git a/third_party/q5 b/third_party/q5 index dd6cf609..b9c7e050 160000 --- a/third_party/q5 +++ b/third_party/q5 @@ -1 +1 @@ -Subproject commit dd6cf609347a05742c56c1e5b7f1f671b4f20ebd +Subproject commit b9c7e05031727615fcd1c9c8355f66046701cc13