Skip to content

Commit 2294387

Browse files
committed
Updated requirements to resolve when sending requests
1 parent 5e97bd6 commit 2294387

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

connection.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = class Connection {
148148
// been running for 5 minutes
149149
if ( readyToResolve
150150
|| ((self.count / self.benchmark_obj.request_interval) === 1)
151-
|| (self.count === self.last_count[0]
151+
|| (self.count == self.last_count[0]
152152
&& (((self.count / self.benchmark_obj.request_interval) > .9)
153153
|| (counter++ >= 300)
154154
))) {
@@ -163,7 +163,6 @@ module.exports = class Connection {
163163
// If the number of successful requests is not changing, we can assume no more
164164
// will be coming in.
165165
self.last_count.push(self.count);
166-
counter++;
167166

168167
}, 1000);
169168
}
@@ -226,7 +225,7 @@ module.exports = class Connection {
226225

227226
// increment error tacker by 1
228227
self.connection_errors++;
229-
console.log("Connection Error: " + error.toString());
228+
//console.log("Connection Error: " + error.toString());
230229

231230
// try to reconnect
232231
self.connect();

0 commit comments

Comments
 (0)