Commit d758c67d9e68321dd530055bcd303c6f6e4e7611

Authored by 陆恒
1 parent 3564872b
Exists in master

提交

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/HttpServer/logic/function.go
... ... @@ -86,9 +86,10 @@ func (u *UserData) DrawTable() int {
86 86 for _, vv := range cflist {
87 87 sumrate += vv.Rate
88 88 }
89   -
  89 + logger.Info("DrawTable sumrate=%v,randnum=%v,cflist=%+v", sumrate, randnum, cflist)
90 90 for _, v := range cflist {
91 91 tmprate += int(v.Rate / sumrate)
  92 + logger.Info("DrawTable tmprate=%v", tmprate)
92 93 if tmprate >= randnum {
93 94 idx = v.Id
94 95 break
... ...