diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-05-26 14:03:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-26 14:03:36 +0200 |
commit | d99b6fed5517797bfafe4bbb307963967f0ca749 (patch) | |
tree | 0a4ff946a9d8bbcd1e921d3981eec96e988bc5c8 /src/clientiface.h | |
parent | 4d5ce8478c959a4ee5b13ef9ba7e46b28d089a21 (diff) | |
download | hax-minetest-server-d99b6fed5517797bfafe4bbb307963967f0ca749.tar.gz hax-minetest-server-d99b6fed5517797bfafe4bbb307963967f0ca749.zip |
Time: Change old `u32` timestamps to 64-bit (#5818)
MacOSX build fix + cleanups
Diffstat (limited to 'src/clientiface.h')
-rw-r--r-- | src/clientiface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clientiface.h b/src/clientiface.h index a219ed5fc..d2299c879 100644 --- a/src/clientiface.h +++ b/src/clientiface.h @@ -266,7 +266,7 @@ public: m_version_patch(0), m_full_version("unknown"), m_deployed_compression(0), - m_connection_time(porting::getTime(PRECISION_SECONDS)) + m_connection_time(porting::getTimeS()) { } ~RemoteClient() @@ -345,7 +345,7 @@ public: { serialization_version = m_pending_serialization_version; } /* get uptime */ - u32 uptime() const; + u64 uptime() const; /* set version information */ void setVersionInfo(u8 major, u8 minor, u8 patch, const std::string &full) @@ -432,7 +432,7 @@ private: /* time this client was created */ - const u32 m_connection_time; + const u64 m_connection_time; }; class ClientInterface { |