|
@@ -1265,11 +1265,13 @@ public class DataDashboardService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- double firstExplorationIntervalAvg = Double.isNaN(item.getFirstExplorationIntervalAvg()) ? 0.0 : item.getFirstExplorationIntervalAvg();
|
|
|
- double explorationInterval = (article.getPublishTimestamp() - hisMinDate) / 86400.0;
|
|
|
- firstExplorationIntervalAvg = (firstExplorationIntervalAvg * (item.getTotalArticleReleaseCountNonInfinite() - 1)
|
|
|
- + explorationInterval) / item.getTotalArticleReleaseCountNonInfinite();
|
|
|
- item.setFirstExplorationIntervalAvg(firstExplorationIntervalAvg);
|
|
|
+ if (hisMinDate > 0) {
|
|
|
+ double firstExplorationIntervalAvg = Double.isNaN(item.getFirstExplorationIntervalAvg()) ? 0.0 : item.getFirstExplorationIntervalAvg();
|
|
|
+ double explorationInterval = (article.getPublishTimestamp() - hisMinDate) / 86400.0;
|
|
|
+ firstExplorationIntervalAvg = (firstExplorationIntervalAvg * (item.getTotalArticleReleaseCountNonInfinite() - 1)
|
|
|
+ + explorationInterval) / item.getTotalArticleReleaseCountNonInfinite();
|
|
|
+ item.setFirstExplorationIntervalAvg(firstExplorationIntervalAvg);
|
|
|
+ }
|
|
|
scoreHisPublishTimeMap.put(type, scorePublishTime);
|
|
|
}
|
|
|
|