summaryrefslogtreecommitdiffstats
path: root/AnvilStats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-04 15:29:42 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-04 15:29:42 +0200
commit9e7cfac327e538021cecb11014e2504129e4e27f (patch)
tree4e6df9ff1ff46bc88649d089fab9172a0c1386a2 /AnvilStats
parentAnvilStats: changed all statistics counters to UInt64 (diff)
downloadcuberite-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 '')
-rw-r--r--AnvilStats/Statistics.cpp10
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:");