MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetGroupRatio

Function GetGroupRatio

setting/ratio_setting/group_ratio.go:64–74  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

62}
63
64func GetGroupRatio(name string) float64 {
65 groupRatioMutex.RLock()
66 defer groupRatioMutex.RUnlock()
67
68 ratio, ok := groupRatio[name]
69 if !ok {
70 common.SysError("group ratio not found: " + name)
71 return 1
72 }
73 return ratio
74}
75
76func GetGroupGroupRatio(userGroup, usingGroup string) (float64, bool) {
77 groupGroupRatioMutex.RLock()

Callers 3

PreWssConsumeQuotaFunction · 0.92
RelayTaskSubmitFunction · 0.92
HandleGroupRatioFunction · 0.92

Calls 1

SysErrorFunction · 0.92

Tested by

no test coverage detected