Skip to content

Commit 7fe2a29

Browse files
committed
Make so single row nuclide info CSV download will be for final decay time, instead of t=0.
1 parent 0c16643 commit 7fe2a29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DecayActivityDiv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,8 @@ namespace
11701170

11711171
for( size_t row = 0; row < m_numRows; ++row )
11721172
{
1173-
const double time_now = m_timeSpan * row / numerator;
1173+
// If you are only requesting one row, make it the full time span time, not t=0.
1174+
const double time_now = m_timeSpan * ((m_numRows > 1) ? row : 1u) / numerator;
11741175

11751176
response.out() << (time_now/time_unit);
11761177

0 commit comments

Comments
 (0)