Fixed slow, changed clean to handle all env variables, changed database handling

This commit is contained in:
TheEssem 2021-04-14 16:37:40 -05:00
parent e89ae06646
commit cc82d32840
5 changed files with 10 additions and 14 deletions

View file

@ -29,7 +29,7 @@ class SpeedWorker : public Napi::AsyncWorker {
}
int new_delay = slow ? old_delay * 2 : old_delay / 2;
if (new_delay <= 1) {
if (!slow && new_delay <= 1) {
new_delay = old_delay;
auto it = frames.begin();
while(it != frames.end() && ++it != frames.end()) it = frames.erase(it);