/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/web/ViewCircuitBreaker.java |
Parent Directory | Revision Log | Patch
revision 1846 by torben, Fri Aug 31 06:38:35 2012 UTC | revision 2075 by torben, Sat Nov 23 10:25:05 2013 UTC | |
---|---|---|
# | Line 89 public class ViewCircuitBreaker implemen | Line 89 public class ViewCircuitBreaker implemen |
89 | double failure_percentage = ((double) acb.getTotalFailureCount()*100) / ((double) acb.getTotalCallCount() ); | double failure_percentage = ((double) acb.getTotalFailureCount()*100) / ((double) acb.getTotalCallCount() ); |
90 | Formatter formatter = new Formatter(sbf); | Formatter formatter = new Formatter(sbf); |
91 | formatter.format("%.2f", failure_percentage); | formatter.format("%.2f", failure_percentage); |
92 | formatter.close(); | |
93 | } else { | } else { |
94 | sbf.append("0.0"); | sbf.append("0.0"); |
95 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |