...
|
...
|
@@ -151,9 +151,9 @@ public class ErrorLogJob implements Callable { |
|
|
public void calTotalPercent(int total, HashMap<String, ErrorStaModel> countMap) {
|
|
|
for (Map.Entry<String, ErrorStaModel> entry : countMap.entrySet()) {
|
|
|
|
|
|
double percent = entry.getValue().getApiSeriesModelList().size() / (double) total;
|
|
|
double percent = 100*entry.getValue().getApiSeriesModelList().size() / (double) total;
|
|
|
|
|
|
entry.getValue().setTotalPercent(format.format(percent));
|
|
|
entry.getValue().setTotalPercent(format.format(percent)+"%");
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -181,9 +181,9 @@ public class ErrorLogJob implements Callable { |
|
|
|
|
|
for (Map.Entry<String, Integer> oneEntry : logIpMap.entrySet()) {
|
|
|
|
|
|
double percent = oneEntry.getValue() / (double) total;
|
|
|
double percent = 100*oneEntry.getValue() / (double) total;
|
|
|
|
|
|
percentmap.put(oneEntry.getKey(), format.format(percent));
|
|
|
percentmap.put(oneEntry.getKey(), format.format(percent)+"%");
|
|
|
}
|
|
|
|
|
|
errorStaModel.setLogIpPercentMap(percentmap);
|
...
|
...
|
|