Change epoch milliseconds return type to uint64_t. (#155)

This commit is contained in:
priyadharsun
2020-11-19 12:54:33 +05:30
committed by GitHub
parent 9160b2ee15
commit eb0012bc47
9 changed files with 27 additions and 28 deletions

View File

@@ -197,7 +197,7 @@ namespace p2p
return false;
}
const int64_t time_now = util::get_epoch_milliseconds();
const uint64_t time_now = util::get_epoch_milliseconds();
// Checking the time to live of the container. The time to live for forwarding is three times the round time.
if (container->timestamp() < (time_now - (conf::cfg.roundtime * 3)))
{