Fix Android compilation

This commit is contained in:
Gioacchino Mazzurco 2021-03-23 23:04:10 +01:00
parent dcb2bee8cc
commit bf8ddf498e
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -117,7 +117,7 @@ std::error_condition StubbornWriteOpQueue::flush(
if(maxRemaining > 0)
{
std::chrono::milliseconds interval(
std::max(50l, maxRemaining*1000/5) );
std::max(rstime_t(50), maxRemaining*1000/5) );
RS_DBG3( "Cannot acquire database write lock, retrying in:",
interval.count(), "ms" );
RsThread::async([this, acceptDelay, callTS, interval]()