Skip to content

Commit

Permalink
Merge pull request #511 from FlanFlanagan/decom_reactor
Browse files Browse the repository at this point in the history
reactor decom
  • Loading branch information
robfairh authored Sep 18, 2019
2 parents 73dea00 + 2714fe1 commit 34ddb11
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions news/decom_reactor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**Added:** None

**Changed:** A reactor will now decommission itself if it is retired and the decommission condition is met.

**Deprecated:** None

**Removed:** None

**Fixed:** None

**Security:** None
3 changes: 3 additions & 0 deletions src/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ void Reactor::Tick() {
while (fresh.count() > 0 && spent.space() >= assem_size) {
spent.Push(fresh.Pop());
}
if(CheckDecommissionCondition()) {
Decommission();
}
return;
}

Expand Down

0 comments on commit 34ddb11

Please sign in to comment.