()
| 89 | } |
| 90 | |
| 91 | func GroupGroupRatio2JSONString() string { |
| 92 | groupGroupRatioMutex.RLock() |
| 93 | defer groupGroupRatioMutex.RUnlock() |
| 94 | |
| 95 | jsonBytes, err := json.Marshal(GroupGroupRatio) |
| 96 | if err != nil { |
| 97 | common.SysError("error marshalling group-group ratio: " + err.Error()) |
| 98 | } |
| 99 | return string(jsonBytes) |
| 100 | } |
| 101 | |
| 102 | func UpdateGroupGroupRatioByJSONString(jsonStr string) error { |
| 103 | groupGroupRatioMutex.Lock() |
no test coverage detected