don't do the min-calculation twice
This commit is contained in:
parent
441ea31fca
commit
7581b64daa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue