mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 01:16:16 +02:00
Fix "last seen" timestamp
This commit is contained in:
parent
4587637487
commit
90785a87da
4 changed files with 32 additions and 12 deletions
|
@ -39,7 +39,7 @@ void TimeProvider::setDiffToServer(double ms)
|
|||
{
|
||||
static int32_t lastTimeSync = 0;
|
||||
timeval now;
|
||||
chronos::systemtimeofday(&now);
|
||||
chronos::steadytimeofday(&now);
|
||||
|
||||
/// clear diffBuffer if last update is older than a minute
|
||||
if (!diffBuffer_.empty() && (std::abs(now.tv_sec - lastTimeSync) > 60))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue