show uptime

This commit is contained in:
orignal 2015-02-23 14:41:56 -05:00
parent e002c05350
commit c46a82420d
3 changed files with 14 additions and 2 deletions

View file

@ -31,6 +31,7 @@ namespace i2p
[](const i2p::data::RouterInfo *) {});
}
CryptoPP::RandomNumberGenerator& GetRandomNumberGenerator () { return m_Rnd; };
uint32_t GetUptime () const;
void UpdatePort (int port); // called from Daemon
void UpdateAddress (const boost::asio::ip::address& host); // called from SSU or Daemon
@ -71,6 +72,7 @@ namespace i2p
CryptoPP::AutoSeededRandomPool m_Rnd;
uint64_t m_LastUpdateTime;
bool m_IsUnreachable, m_AcceptsTunnels, m_IsFloodfill;
uint64_t m_StartupTime; // in seconds since epoch
};
extern RouterContext context;