Browse Source

Fixed bug with wrong dormancyFactor when copying elements

Former-commit-id: 3c2ddcc08a
tempestpy_adaptions
Mavo 9 years ago
parent
commit
4db05a7c20
  1. 2
      src/storage/dft/DFTBuilder.cpp

2
src/storage/dft/DFTBuilder.cpp

@ -226,7 +226,7 @@ namespace storm {
std::shared_ptr<DFTBE<ValueType>> be = std::static_pointer_cast<DFTBE<ValueType>>(element);
ValueType dormancyFactor = storm::utility::zero<ValueType>();
if (!storm::utility::isZero(be->passiveFailureRate())) {
dormancyFactor = be->activeFailureRate() / be->passiveFailureRate();
dormancyFactor = be->passiveFailureRate() / be->activeFailureRate();
}
addBasicElement(be->name(), be->activeFailureRate(), dormancyFactor);
break;

Loading…
Cancel
Save