Skip to content

Commit b54551f

Browse files
committed
examples/logger: specify base when using parseInt
1 parent 2caf69c commit b54551f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/logger/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ var options = {
2929
},
3030
serviceHostSelected: function(proxySocket, i) {
3131
console.log(util.format("Service host %s:%s selected for client %s:%s.",
32-
serviceHosts[parseInt(i)],
33-
servicePorts[parseInt(i)],
32+
serviceHosts[parseInt(i, 10)],
33+
servicePorts[parseInt(i, 10)],
3434
proxySocket.remoteAddress,
3535
proxySocket.remotePort));
3636
// use your own strategy to calculate i

0 commit comments

Comments
 (0)