Commit 3564872b0c799fcc5bd38f3d4fb01d8ea5995eee

Authored by 陆恒
1 parent 34263c32
Exists in master

提交

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/HttpServer/logic/function.go
... ... @@ -106,8 +106,10 @@ func (u *UserData) DrawTable() int {
106 106 sumrate += vv.Rate
107 107 }
108 108  
  109 + logger.Info("DrawTable sumrate=%v,randnum=%v,cflist=%+v", sumrate, randnum, cflist)
109 110 for _, v := range cflist {
110 111 tmprate += int(v.Rate / sumrate)
  112 + logger.Info("DrawTable tmprate=%v", tmprate)
111 113 if tmprate >= randnum {
112 114 idx = v.Id
113 115 break
... ...