diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-04 15:29:42 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-04 15:29:42 +0200 |
commit | 9e7cfac327e538021cecb11014e2504129e4e27f (patch) | |
tree | 4e6df9ff1ff46bc88649d089fab9172a0c1386a2 /AnvilStats | |
parent | AnvilStats: changed all statistics counters to UInt64 (diff) | |
download | cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.tar cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.tar.gz cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.tar.bz2 cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.tar.lz cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.tar.xz cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.tar.zst cuberite-9e7cfac327e538021cecb11014e2504129e4e27f.zip |
Diffstat (limited to 'AnvilStats')
-rw-r--r-- | AnvilStats/Statistics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/AnvilStats/Statistics.cpp b/AnvilStats/Statistics.cpp index 671063ffb..57bad7342 100644 --- a/AnvilStats/Statistics.cpp +++ b/AnvilStats/Statistics.cpp @@ -293,11 +293,11 @@ cStatisticsFactory::~cStatisticsFactory() LOG("cStatistics:");
LOG(" Joining results...");
JoinResults();
- LOG(" Total %d chunks went through", m_CombinedStats.m_TotalChunks);
- LOG(" Biomes processed for %d chunks", m_CombinedStats.m_BiomeNumChunks);
+ LOG(" Total %llu chunks went through", m_CombinedStats.m_TotalChunks);
+ LOG(" Biomes processed for %llu chunks", m_CombinedStats.m_BiomeNumChunks);
// Check the number of blocks processed
- Int64 TotalBlocks = 0;
+ UInt64 TotalBlocks = 0;
for (int i = 0; i <= 255; i++)
{
for (int j = 0; j < 255; j++)
@@ -305,8 +305,8 @@ cStatisticsFactory::~cStatisticsFactory() TotalBlocks += m_CombinedStats.m_BlockCounts[i][j];
}
}
- Int64 ExpTotalBlocks = (Int64)(m_CombinedStats.m_BlockNumChunks) * 16LL * 16LL * 256LL;
- LOG(" BlockIDs processed for %d chunks, %lld blocks (exp %lld; %s)", m_CombinedStats.m_BlockNumChunks, TotalBlocks, ExpTotalBlocks, (TotalBlocks == ExpTotalBlocks) ? "match" : "failed");
+ UInt64 ExpTotalBlocks = m_CombinedStats.m_BlockNumChunks * 16LL * 16LL * 256LL;
+ LOG(" BlockIDs processed for %llu chunks, %llu blocks (exp %llu; %s)", m_CombinedStats.m_BlockNumChunks, TotalBlocks, ExpTotalBlocks, (TotalBlocks == ExpTotalBlocks) ? "match" : "failed");
// Save statistics:
LOG(" Saving statistics into files:");
|