don't do the min-calculation twice

This commit is contained in:
Markus Pilman 2022-09-19 15:57:46 -06:00
parent 441ea31fca
commit 7581b64daa
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public:
// prevent int overflow
m_budget = m_limit;
} else {
returnUnused(int(std::min(unused, double(m_limit))));
returnUnused(int(unused));
}
m_last_update = ts;
m_budget -= n;