change ivar name

This commit is contained in:
Eric House 2013-07-20 08:33:22 -07:00
parent 61992943dd
commit 792a51a404
2 changed files with 5 additions and 5 deletions

View file

@ -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; */

View file

@ -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