make sure not zero

This commit is contained in:
Brian Moran 2023-04-28 07:59:38 -07:00
parent 51539952b7
commit afd97aeb68

View File

@ -284,6 +284,7 @@ double FoxLog::rate_last_n(int n)
// size / (time_now - time_of_first)
m_->rate_n_query_.last();
rate_interval = secs_now - m_->rate_n_query_.value (0).toLongLong ();
if (rate_interval == 0) return 0.0;
m_->rate_n_query_.first(); // count the records