Browse Source

DFT: fixed stringstream clearing

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
3e8959c866
  1. 5
      src/storm-dft/storage/dft/DftJsonExporter.cpp

5
src/storm-dft/storage/dft/DftJsonExporter.cpp

@ -82,8 +82,9 @@ namespace storm {
std::stringstream stream;
stream << be->activeFailureRate();
nodeData["rate"] = stream.str();
stream.clear();
stream << (be->passiveFailureRate() / be->activeFailureRate());
stream.str(std::string()); // Clear stringstream
ValueType dormancy = be->passiveFailureRate() / be->activeFailureRate();
stream << dormancy;
nodeData["dorm"] = stream.str();
}

Loading…
Cancel
Save