From caabbcf9fd5708943628e3c61d3853b6e0b132bc Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 3 Jan 2016 14:42:56 +0200 Subject: [PATCH] closes #3949 --- src/socket.io/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/admin.js b/src/socket.io/admin.js index 95af8c7122..6a5b1ad883 100644 --- a/src/socket.io/admin.js +++ b/src/socket.io/admin.js @@ -270,7 +270,7 @@ function getHourlyStatsForSet(set, hour, numHours, callback) { } hoursArr.forEach(function(term, index) { - terms[term] = counts[index] || 0; + terms[term] = parseInt(counts[index], 10) || 0; }); var termsArr = [];