Skip to content

Fix spurious System time mismatch in distributedchat#215

Merged
csoler merged 3 commits into
RetroShare:masterfrom
jolavillette:FixSystemTimeMismatch
Dec 22, 2025
Merged

Fix spurious System time mismatch in distributedchat#215
csoler merged 3 commits into
RetroShare:masterfrom
jolavillette:FixSystemTimeMismatch

Conversation

@jolavillette

Copy link
Copy Markdown
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.

Comment thread src/chat/distributedchat.cc Outdated

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

@csoler csoler Dec 22, 2025

Copy link
Copy Markdown
Contributor

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
@jolavillette jolavillette deleted the FixSystemTimeMismatch branch December 30, 2025 07:54
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