From 792a51a4042a2c9087a44482725673645c143132 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 20 Jul 2013 08:33:22 -0700 Subject: [PATCH] change ivar name --- xwords4/relay/addrinfo.cpp | 6 +++--- xwords4/relay/addrinfo.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xwords4/relay/addrinfo.cpp b/xwords4/relay/addrinfo.cpp index b3a2fd213..681d8d212 100644 --- a/xwords4/relay/addrinfo.cpp +++ b/xwords4/relay/addrinfo.cpp @@ -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; */ diff --git a/xwords4/relay/addrinfo.h b/xwords4/relay/addrinfo.h index da2607ae6..22b9b04fd 100644 --- a/xwords4/relay/addrinfo.h +++ b/xwords4/relay/addrinfo.h @@ -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