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

Function GroupRatio2JSONString

setting/ratio_setting/group_ratio.go:45–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func GroupRatio2JSONString() string {
46 groupRatioMutex.RLock()
47 defer groupRatioMutex.RUnlock()
48
49 jsonBytes, err := json.Marshal(groupRatio)
50 if err != nil {
51 common.SysError("error marshalling model ratio: " + err.Error())
52 }
53 return string(jsonBytes)
54}
55
56func UpdateGroupRatioByJSONString(jsonStr string) error {
57 groupRatioMutex.Lock()

Callers 1

InitOptionMapFunction · 0.92

Calls 2

SysErrorFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected