Authored by jack.xue

fix ui

... ... @@ -116,9 +116,9 @@ public class BaseLogJob implements Callable {
for (Map.Entry<String, Integer> oneCount : countMap.entrySet()) {
double percent = oneCount.getValue() / (double) total;
double percent = 100*oneCount.getValue() / (double) total;
percentMap.put(oneCount.getKey(), format.format(percent));
percentMap.put(oneCount.getKey(), format.format(percent)+"%");
}
return percentMap;
... ... @@ -133,9 +133,9 @@ public class BaseLogJob implements Callable {
oneEntry.getValue().setCount(count);
double percent = count / (double) total;
double percent = 100*count / (double) total;
oneEntry.getValue().setTotalPercent(format.format(percent));
oneEntry.getValue().setTotalPercent(format.format(percent)+"%");
}
}
... ...
... ... @@ -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);
... ...