mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
clean line trailing spaces and tabs
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
94661f697b
commit
edc0162163
66 changed files with 998 additions and 999 deletions
|
@ -48,7 +48,7 @@ namespace util
|
|||
return std::chrono::duration_cast<std::chrono::minutes>(
|
||||
std::chrono::system_clock::now().time_since_epoch()).count ();
|
||||
}
|
||||
|
||||
|
||||
static uint32_t GetLocalHoursSinceEpoch ()
|
||||
{
|
||||
return std::chrono::duration_cast<std::chrono::hours>(
|
||||
|
@ -70,23 +70,23 @@ namespace util
|
|||
boost::asio::ip::udp::resolver::iterator end;
|
||||
boost::asio::ip::udp::endpoint ep;
|
||||
while (it != end)
|
||||
{
|
||||
{
|
||||
ep = *it;
|
||||
if (!ep.address ().is_unspecified ())
|
||||
{
|
||||
if (ep.address ().is_v4 ())
|
||||
{
|
||||
if (i2p::context.SupportsV4 ()) found = true;
|
||||
{
|
||||
if (i2p::context.SupportsV4 ()) found = true;
|
||||
}
|
||||
else if (ep.address ().is_v6 ())
|
||||
{
|
||||
if (i2p::util::net::IsYggdrasilAddress (ep.address ()))
|
||||
{
|
||||
if (i2p::context.SupportsMesh ()) found = true;
|
||||
}
|
||||
}
|
||||
else if (i2p::context.SupportsV6 ()) found = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (found) break;
|
||||
it++;
|
||||
}
|
||||
|
@ -94,8 +94,8 @@ namespace util
|
|||
{
|
||||
LogPrint (eLogError, "Timestamp: can't find compatible address for ", address);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
boost::asio::ip::udp::socket socket (service);
|
||||
socket.open (ep.protocol (), ec);
|
||||
if (!ec)
|
||||
|
@ -220,13 +220,13 @@ namespace util
|
|||
uint64_t GetSecondsSinceEpoch ()
|
||||
{
|
||||
return GetLocalSecondsSinceEpoch () + g_TimeOffset;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
uint32_t GetMinutesSinceEpoch ()
|
||||
{
|
||||
return GetLocalMinutesSinceEpoch () + g_TimeOffset/60;
|
||||
}
|
||||
|
||||
|
||||
uint32_t GetHoursSinceEpoch ()
|
||||
{
|
||||
return GetLocalHoursSinceEpoch () + g_TimeOffset/3600;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue