|
@@ -380,6 +380,7 @@ public class SandtableService {
|
|
|
}
|
|
|
if (mttrmaps.containsKey("mtbf")) {
|
|
|
tb_mtbf = (double) mttrmaps.get("mtbf");
|
|
|
+ if(tb_mtbf!=0)
|
|
|
tb_mtbf = new BigDecimal(mtbf - tb_mtbf).divide(new BigDecimal(tb_mtbf), 4, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
|
|
|
}
|
|
@@ -421,6 +422,7 @@ public class SandtableService {
|
|
|
}
|
|
|
if (mttrmaps.containsKey("mtbf")) {
|
|
|
bg_mtbf = (double) mttrmaps.get("mtbf");
|
|
|
+ if(bg_mtbf!=0)
|
|
|
bg_mtbf = new BigDecimal(mtbf - bg_mtbf).divide(new BigDecimal(bg_mtbf), 4, RoundingMode.HALF_EVEN).multiply(new BigDecimal(100)).doubleValue();
|
|
|
if(bg_mtbf<-100)
|
|
|
{
|