MacOS build fix

meow-7.2.2
Andrey Kleshchev 2023-10-04 00:01:51 +03:00
parent 5566f28b03
commit 5d7b1b09ff
2 changed files with 5 additions and 6 deletions

View File

@ -1036,7 +1036,7 @@ AISUpdate::AISUpdate(const LLSD& update, AISAPI::COMMAND_TYPE type, const LLSD&
mFetchDepth = request_body["depth"].asInteger();
}
mTimer.setTimerExpirySec(EXPIRY_SECONDS_LIVE);
mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS);
mTimer.start();
parseUpdate(update);
}
@ -1062,7 +1062,7 @@ void AISUpdate::checkTimeout()
{
llcoro::suspend();
LLCoros::checkStop();
mTimer.setTimerExpirySec(EXPIRY_SECONDS_LIVE);
mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS);
}
}

View File

@ -130,10 +130,9 @@ private:
void clearParseResults();
void checkTimeout();
// Debug is very log-heavy, give it more time or it will take forever to process
// Todo: find a way to make throttle static isntead of per-request
const F32 EXPIRY_SECONDS_DEBUG = 1.f;
const F32 EXPIRY_SECONDS_LIVE = 0.008f;
// Fetch can return large packets of data, throttle it to not cause lags
// Todo: make throttle work over all fetch requests isntead of per-request
const F32 AIS_EXPIRY_SECONDS = 0.008f;
typedef std::map<LLUUID,S32> uuid_int_map_t;
uuid_int_map_t mCatDescendentDeltas;