Print out number of blocks in memory at unload
parent
74770ab718
commit
651657edfd
|
@ -1405,6 +1405,7 @@ void Map::timerUpdate(float dtime, float unload_timeout,
|
||||||
core::list<v2s16> sector_deletion_queue;
|
core::list<v2s16> sector_deletion_queue;
|
||||||
u32 deleted_blocks_count = 0;
|
u32 deleted_blocks_count = 0;
|
||||||
u32 saved_blocks_count = 0;
|
u32 saved_blocks_count = 0;
|
||||||
|
u32 block_count_all = 0;
|
||||||
|
|
||||||
core::map<v2s16, MapSector*>::Iterator si;
|
core::map<v2s16, MapSector*>::Iterator si;
|
||||||
|
|
||||||
|
@ -1450,6 +1451,7 @@ void Map::timerUpdate(float dtime, float unload_timeout,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
all_blocks_deleted = false;
|
all_blocks_deleted = false;
|
||||||
|
block_count_all++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1470,6 +1472,7 @@ void Map::timerUpdate(float dtime, float unload_timeout,
|
||||||
<<" blocks from memory";
|
<<" blocks from memory";
|
||||||
if(save_before_unloading)
|
if(save_before_unloading)
|
||||||
infostream<<", of which "<<saved_blocks_count<<" were written";
|
infostream<<", of which "<<saved_blocks_count<<" were written";
|
||||||
|
infostream<<", "<<block_count_all<<" blocks in memory";
|
||||||
infostream<<"."<<std::endl;
|
infostream<<"."<<std::endl;
|
||||||
if(saved_blocks_count != 0){
|
if(saved_blocks_count != 0){
|
||||||
PrintInfo(infostream); // ServerMap/ClientMap:
|
PrintInfo(infostream); // ServerMap/ClientMap:
|
||||||
|
|
Loading…
Reference in New Issue