Skip to content

Commit

Permalink
Reduce rooms to watch at initial check
Browse files Browse the repository at this point in the history
  • Loading branch information
edvakf committed Oct 19, 2016
1 parent 214b8c1 commit 781b4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/scenario/initial_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,14 @@ func WatcherCountIncreases(origins []string) {

pad := rand.Intn(20)

for i := 0; i < 6; i++ { // チェックする部屋を6部屋決める
for i := 0; i < 5; i++ { // チェックする部屋を5部屋とする
for j := 0; j < i; j++ { // それぞれの部屋にi人がwatcherが参加する
wg.Add(1)

go func(i, j int) {
defer wg.Done()

room := rooms[20+pad+i*10]
room := rooms[30+pad+i*10]

w := NewRoomWatcher(randomOrigin(origins), room.ID)

Expand Down

0 comments on commit 781b4b9

Please sign in to comment.