修复月份统计中key值位年

This commit is contained in:
ascrutae 2016-04-18 18:56:36 +08:00
parent 56db909c4d
commit f68dd91b9c
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ public class CallChainTreeNode {
}
chainNodeSpecificMonthSummaryContainer.put(keyOfMonthSummaryTable, monthSummary);
}
monthSummary.summary(String.valueOf(calendar.get(Calendar.YEAR)), node);
monthSummary.summary(String.valueOf(calendar.get(Calendar.MONTH)), node);
}
private void summaryDayResult(String treeId, ChainNode node, Calendar calendar) throws IOException {

View File

@ -29,11 +29,11 @@ public class ChainNodeSpecificMonthSummary {
summaryValueMap = new HashMap<String, ChainNodeSpecificTimeWindowSummaryValue>();
}
public void summary(String minute, ChainNode node) {
ChainNodeSpecificTimeWindowSummaryValue summarValue = summaryValueMap.get(minute);
public void summary(String month, ChainNode node) {
ChainNodeSpecificTimeWindowSummaryValue summarValue = summaryValueMap.get(month);
if (summarValue == null) {
summarValue = new ChainNodeSpecificTimeWindowSummaryValue();
summaryValueMap.put(minute, summarValue);
summaryValueMap.put(month, summarValue);
}
summarValue.summary(node);