diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3e6f06817..15eee6de8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,7 +6,7 @@ cycamore Change Log **Added:** * GitHub workflows for building/testing on a PR and push to `main` (#549, #564) -* Add functionality for random behavior on the size of a sink (#550) +* Add functionality for random behavior on the size (#550) and frequency (#565) of a sink * GitHub workflow to check that the CHANGELOG has been updated (#562) **Changed:** diff --git a/src/sink.cc b/src/sink.cc index d31a67d84..05fdc3311 100644 --- a/src/sink.cc +++ b/src/sink.cc @@ -58,18 +58,18 @@ void Sink::EnterNotify() { SetRequestAmt(); SetNextBuyTime(); - if (random_frequency_size != "None") { + if (random_size_type != "None") { LOG(cyclus::LEV_INFO4, "SnkFac") << "Sink " << this->id() << " is using random behavior " << random_size_type << " for determining request size."; } - if (random_frequency_size != "None") { + if (random_frequency_type != "None") { LOG(cyclus::LEV_INFO4, "SnkFac") << "Sink " << this->id() << " is using random behavior " << random_frequency_type << " for determining request frequency."; - + } RecordPosition(); }