From 343a89f9fa20d2d142469b2a4531e16ce03d3525 Mon Sep 17 00:00:00 2001 From: qixiaoning <jony.kee@outlook.com> Date: 星期四, 24 七月 2025 09:50:10 +0800 Subject: [PATCH] 算力管理,记录查询 --- chanmanage-service/service/pollSetService.go | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/chanmanage-service/service/pollSetService.go b/chanmanage-service/service/pollSetService.go index 0e5b5ff..3fb386b 100644 --- a/chanmanage-service/service/pollSetService.go +++ b/chanmanage-service/service/pollSetService.go @@ -75,9 +75,9 @@ return false } -//瑙﹀彂鏉′欢 -//1.瀹炴椂鎽勫儚鏈哄垏鎹负杞鎴栬�呯洃鎺э紝鎴栬�呭疄鏃剁敱鐩戞帶鍒囨崲涓哄疄鏃� -//2.瀹炴椂鎽勫儚鏈鸿鍒橢nable鐘舵�佹敼鍙� +// 瑙﹀彂鏉′欢 +// 1.瀹炴椂鎽勫儚鏈哄垏鎹负杞鎴栬�呯洃鎺э紝鎴栬�呭疄鏃剁敱鐩戞帶鍒囨崲涓哄疄鏃� +// 2.瀹炴椂鎽勫儚鏈鸿鍒橢nable鐘舵�佹敼鍙� func (sv *PollSetService) ResetChannelCount() { //1.璁$畻鍋氬疄鏃朵换鍔$殑璺暟 //2.鏈湴鏂囦欢鍗犵殑璺暟 @@ -104,7 +104,7 @@ sv.UpdateChannelCount(pollCount, videoCount) } -//鎷栧姩鏀瑰彉杞鍜屾暟鎹爤鐨勬暟閲� +// 鎷栧姩鏀瑰彉杞鍜屾暟鎹爤鐨勬暟閲� func (sv *PollSetService) UpdateChannelCount(pollChannelCount int, videoChannelCount int) bool { var fasApi bhomedbapi.FileStackApi var err error @@ -191,15 +191,15 @@ v.RealRunningCount++ } } else if c.RunType == bhomeclient.TYPE_RUNTYPE_POLL { - pTotal++ - if crInfo, ok := ruleM[c.Id]; ok && crInfo.Rules != nil && len(crInfo.Rules) > 0 { - v.PollValidCount++ - } else { - v.PollInvalidCount++ - } - if c.IsRunning { - v.PollRunningCount++ - } + // pTotal++ + // if crInfo, ok := ruleM[c.Id]; ok && crInfo.Rules != nil && len(crInfo.Rules) > 0 { + // v.PollValidCount++ + // } else { + // v.PollInvalidCount++ + // } + // if c.IsRunning { + // v.PollRunningCount++ + // } } } v.RealTotal = rTotal -- Gitblit v1.8.0