From 54e97eadc949bf5ab198033f5b1570973cdc4e68 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sat, 22 Oct 2016 17:43:03 -0400 Subject: [PATCH] fixed decimal members --- hourglass/client/profile/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index cef1d00..44b9876 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -586,7 +586,7 @@ Template.profile.events({ name: item.childNodes[1].childNodes[0].nodeValue, teacher: item.childNodes[3].childNodes[0].nodeValue, hour: item.childNodes[5].childNodes[0].nodeValue, - subscribers: item.childNodes[7].childNodes[0].nodeValue.length / 17, + subscribers: Math.floor(item.childNodes[7].childNodes[0].nodeValue.length / 17), _id: item.getAttribute("classid") }); Session.set("autocompleteDivs", divs);