From c11c0174ece92b4502648ad33653975bfdfc39a0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 5 May 2008 17:45:30 +0000 Subject: lights with entity color, sunlight, network stats --- src/server/server.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/server.cc b/src/server/server.cc index 69e8923..1c95ee8 100644 --- a/src/server/server.cc +++ b/src/server/server.cc @@ -4,7 +4,11 @@ the terms and conditions of the GNU General Public License version 2 */ +#include +#include + #include "core/core.h" +#include "core/stats.h" #include "server/console.h" #include "server/server.h" #include "server/timer.h" @@ -93,8 +97,12 @@ void Server::run() void Server::shutdown() { - con_debug << "Shutting down server..." << std::endl; + con_print << "Shutting down server..." << std::endl; + con_debug << "Network statistics:" << std::endl; + con_debug << " bytes sent " << std::setw(6) << core::Stats::network_bytes_sent / 1024 << " Kb" << std::endl; + con_debug << " bytes received " << std::setw(6) << core::Stats::network_bytes_received / 1024 << " Kb" << std::endl; + console::shutdown(); core::Application::shutdown(); @@ -107,6 +115,5 @@ void Server::quit(int status) core::Application::quit(status); } - } // namespace server -- cgit v1.2.3