Treat the result of ZSCORE as an int.

This commit is contained in:
James Coglan
2013-04-28 12:00:05 +01:00
parent 865f0e13c7
commit 1f37edc011
+1 -1
View File
@@ -69,7 +69,7 @@ Engine.prototype = {
var cutoff = new Date().getTime() - (1000 * 1.6 * this._server.timeout);
this._redis.zscore(this._ns + '/clients', clientId, function(error, score) {
callback.call(context, score > cutoff);
callback.call(context, parseInt(score, 10) > cutoff);
});
},