mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
change ivar name
This commit is contained in:
parent
61992943dd
commit
792a51a404
2 changed files with 5 additions and 5 deletions
|
@ -37,9 +37,9 @@ AddrInfo::construct( int socket, const AddrUnion* saddr, bool isTCP )
|
|||
struct timespec tp;
|
||||
clock_gettime( CLOCK_MONOTONIC, &tp );
|
||||
/* convert to milliseconds */
|
||||
m_created = (tp.tv_sec * 1000) + (tp.tv_nsec / 1000000);
|
||||
logf( XW_LOGINFO, "%s: m_created for socket %d: %lx",
|
||||
__func__, socket, m_created );
|
||||
m_createdMillis = (tp.tv_sec * 1000) + (tp.tv_nsec / 1000000);
|
||||
logf( XW_LOGINFO, "%s: m_createdMillis for socket %d: %lx",
|
||||
__func__, socket, m_createdMillis );
|
||||
/* assert( m_created >= s_prevCreated ); */
|
||||
/* s_prevCreated = m_created; */
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ class AddrInfo {
|
|||
const struct sockaddr* sockaddr() const { assert(m_isValid);
|
||||
return &m_saddr.u.addr; }
|
||||
const AddrUnion* saddr() const { assert(m_isValid); return &m_saddr; }
|
||||
uint32_t created() const { return m_created; }
|
||||
uint32_t created() const { return m_createdMillis; }
|
||||
bool isCurrent() const;
|
||||
|
||||
bool equals( const AddrInfo& other ) const;
|
||||
|
@ -92,7 +92,7 @@ class AddrInfo {
|
|||
bool m_isValid;
|
||||
ClientToken m_clientToken; /* must be 32 bit */
|
||||
AddrUnion m_saddr;
|
||||
uint32_t m_created; /* microseconds since boot, from clock_gettime() */
|
||||
uint32_t m_createdMillis; /* milliseconds since boot, from clock_gettime() */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue