pivotal-jbarrett commented on code in PR #962: URL: https://github.com/apache/geode-native/pull/962#discussion_r861177155
########## cppcache/src/ClientHealthStats.cpp: ########## @@ -14,62 +14,58 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "ClientHealthStats.hpp" -#include "CacheImpl.hpp" +#include <geode/CacheableDate.hpp> +#include <geode/DataInput.hpp> +#include <geode/DataOutput.hpp> namespace apache { namespace geode { namespace client { void ClientHealthStats::toData(DataOutput& output) const { - output.writeInt(static_cast<int32_t>(m_numGets)); - output.writeInt(static_cast<int32_t>(m_numPuts)); - output.writeInt(static_cast<int32_t>(m_numMisses)); - output.writeInt(static_cast<int32_t>(m_numCacheListenerCalls)); - output.writeInt(static_cast<int32_t>(m_numThread)); - output.writeInt(static_cast<int32_t>(m_cpus)); - output.writeInt(static_cast<int64_t>(m_processCpuTime)); - m_updateTime->toData(output); + output.writeInt(static_cast<int64_t>(gets_)); + output.writeInt(static_cast<int64_t>(puts_)); + output.writeInt(static_cast<int64_t>(misses_)); + output.writeInt(static_cast<int32_t>(cacheListenerCallsCompleted_)); + output.writeInt(static_cast<int32_t>(threads_)); + output.writeInt(static_cast<int32_t>(cpus_)); + output.writeInt(static_cast<int64_t>(processCpuTime_)); + updateTime_->toData(output); Review Comment: Not sure what you mean by "version of the stat file"? The field type is recorded in the stat file so the size change has no real affect on the consumer of the file. The field sizes change in the protocol some time ago when we dropped support for `int` type stats. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org