Permalink
Browse files

Fixing API usage calculation.

  • Loading branch information...
cezarsa committed May 24, 2011
1 parent 9208cbe commit 573242f212b9652e9d7b72646051f60bd5175f5d
Showing with 8 additions and 3 deletions.
  1. +8 −3 options.html
View
@@ -273,10 +273,15 @@
var intVal = parseInt(inputRefreshEl.val(), 10);
var timelineHits = (60 * 60) / intVal;
var timelineCount = 1;
var userData = template.getUserData();
if(userData && userData.length > 0) {
timelineCount = userData.length;
if(template.id == TimelineTemplate.DMS) {
timelineCount = 2;
} else {
var userData = template.getUserData();
if(userData && userData.length > 0) {
timelineCount = userData.length;
}
}
totalHits += timelineHits * timelineCount;
return true;
});

0 comments on commit 573242f

Please sign in to comment.