elbping 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/elbping/cli.rb +4 -4
- metadata +1 -1
data/lib/elbping/cli.rb
CHANGED
@@ -85,9 +85,9 @@ module ElbPing
|
|
85
85
|
exit
|
86
86
|
}
|
87
87
|
|
88
|
-
|
89
|
-
while OPTIONS[:count] < 1 ||
|
90
|
-
sleep OPTIONS[:wait] if
|
88
|
+
iteration = 0
|
89
|
+
while OPTIONS[:count] < 1 || iteration < OPTIONS[:count]
|
90
|
+
sleep OPTIONS[:wait] if iteration > 0
|
91
91
|
|
92
92
|
nodes.map { |node|
|
93
93
|
total_summary[:reqs_attempted] += 1
|
@@ -102,8 +102,8 @@ module ElbPing
|
|
102
102
|
end
|
103
103
|
|
104
104
|
ElbPing::Display.response(status)
|
105
|
-
i += 1
|
106
105
|
}
|
106
|
+
iteration += 1
|
107
107
|
end
|
108
108
|
ElbPing::Display.summary(total_summary, node_summary)
|
109
109
|
end
|