|
@@ -151,9 +151,9 @@ public class ErrorLogJob implements Callable { |
|
@@ -151,9 +151,9 @@ public class ErrorLogJob implements Callable { |
151
|
public void calTotalPercent(int total, HashMap<String, ErrorStaModel> countMap) {
|
151
|
public void calTotalPercent(int total, HashMap<String, ErrorStaModel> countMap) {
|
152
|
for (Map.Entry<String, ErrorStaModel> entry : countMap.entrySet()) {
|
152
|
for (Map.Entry<String, ErrorStaModel> entry : countMap.entrySet()) {
|
153
|
|
153
|
|
154
|
- double percent = entry.getValue().getApiSeriesModelList().size() / (double) total;
|
154
|
+ double percent = 100*entry.getValue().getApiSeriesModelList().size() / (double) total;
|
155
|
|
155
|
|
156
|
- entry.getValue().setTotalPercent(format.format(percent));
|
156
|
+ entry.getValue().setTotalPercent(format.format(percent)+"%");
|
157
|
}
|
157
|
}
|
158
|
}
|
158
|
}
|
159
|
|
159
|
|
|
@@ -181,9 +181,9 @@ public class ErrorLogJob implements Callable { |
|
@@ -181,9 +181,9 @@ public class ErrorLogJob implements Callable { |
181
|
|
181
|
|
182
|
for (Map.Entry<String, Integer> oneEntry : logIpMap.entrySet()) {
|
182
|
for (Map.Entry<String, Integer> oneEntry : logIpMap.entrySet()) {
|
183
|
|
183
|
|
184
|
- double percent = oneEntry.getValue() / (double) total;
|
184
|
+ double percent = 100*oneEntry.getValue() / (double) total;
|
185
|
|
185
|
|
186
|
- percentmap.put(oneEntry.getKey(), format.format(percent));
|
186
|
+ percentmap.put(oneEntry.getKey(), format.format(percent)+"%");
|
187
|
}
|
187
|
}
|
188
|
|
188
|
|
189
|
errorStaModel.setLogIpPercentMap(percentmap);
|
189
|
errorStaModel.setLogIpPercentMap(percentmap);
|