Skip to content

Commit

Permalink
floor delay used with setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyt committed Aug 3, 2014
1 parent a188bab commit 5095525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/retry_send.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function RetrySend(sock, port, host) {
this._host = host

this._sendAttemp = 0
this._currentTime = parameters.ackTimeout * (1 + (parameters.ackRandomFactor - 1) * Math.random()) * 1000
this._currentTime = Math.floor(parameters.ackTimeout * (1 + (parameters.ackRandomFactor - 1) * Math.random()) * 1000)

this._bOff = function() {
that._currentTime = that._currentTime * 2
Expand Down

0 comments on commit 5095525

Please sign in to comment.