Authored by jack.xue

fix ui

@@ -116,9 +116,9 @@ public class BaseLogJob implements Callable { @@ -116,9 +116,9 @@ public class BaseLogJob implements Callable {
116 116
117 for (Map.Entry<String, Integer> oneCount : countMap.entrySet()) { 117 for (Map.Entry<String, Integer> oneCount : countMap.entrySet()) {
118 118
119 - double percent = oneCount.getValue() / (double) total; 119 + double percent = 100*oneCount.getValue() / (double) total;
120 120
121 - percentMap.put(oneCount.getKey(), format.format(percent)); 121 + percentMap.put(oneCount.getKey(), format.format(percent)+"%");
122 } 122 }
123 123
124 return percentMap; 124 return percentMap;
@@ -133,9 +133,9 @@ public class BaseLogJob implements Callable { @@ -133,9 +133,9 @@ public class BaseLogJob implements Callable {
133 133
134 oneEntry.getValue().setCount(count); 134 oneEntry.getValue().setCount(count);
135 135
136 - double percent = count / (double) total; 136 + double percent = 100*count / (double) total;
137 137
138 - oneEntry.getValue().setTotalPercent(format.format(percent)); 138 + oneEntry.getValue().setTotalPercent(format.format(percent)+"%");
139 } 139 }
140 } 140 }
141 141
@@ -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);