Browse Source

correct time offset direction

pull/2003/head
orignal 12 months ago
parent
commit
21f41a2b2a
  1. 4
      libi2pd/SSU2.cpp

4
libi2pd/SSU2.cpp

@ -217,8 +217,8 @@ namespace transport
if (m_PendingTimeOffset) // one more if (m_PendingTimeOffset) // one more
{ {
offset = (m_PendingTimeOffset + offset)/2; // average offset = (m_PendingTimeOffset + offset)/2; // average
LogPrint (eLogWarning, "SSU2: Clock adjusted by ", -offset, " seconds"); LogPrint (eLogWarning, "SSU2: Clock adjusted by ", offset, " seconds");
i2p::util::AdjustTimeOffset (-offset); i2p::util::AdjustTimeOffset (offset);
m_PendingTimeOffset = 0; m_PendingTimeOffset = 0;
} }
else else

Loading…
Cancel
Save