Skip to content

Conversation

@jolavillette
Copy link
Contributor

Fix spurious System time mismatch in distributedchat.
That is caused by bursts of messages from friends using a wrong system clock.
We eliminate that by handling at most 1 message per second.


void DistributedChatService::addTimeShiftStatistics(int D)
{
// consider only 1 item per second
Copy link
Contributor

@csoler csoler Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add this comment?

"A wrong diagnosis of your own clock may be caused by bursts of messages from friends using a wrong system clock.
We eliminate that by handling at most 1 message per second."

@csoler csoler merged commit 0e516be into RetroShare:master Dec 22, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants