mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
flood to 2 next day closest floodfills before UTC midnight
This commit is contained in:
parent
bc8adf1433
commit
a1995c13cd
6 changed files with 49 additions and 16 deletions
|
@ -255,6 +255,11 @@ namespace util
|
|||
GetDateString (GetSecondsSinceEpoch (), date);
|
||||
}
|
||||
|
||||
void GetNextDayDate (char * date)
|
||||
{
|
||||
GetDateString (GetSecondsSinceEpoch () + 24*60*60, date);
|
||||
}
|
||||
|
||||
void GetDateString (uint64_t timestamp, char * date)
|
||||
{
|
||||
using clock = std::chrono::system_clock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue