diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-05 17:45:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-05 17:45:30 +0000 |
commit | c11c0174ece92b4502648ad33653975bfdfc39a0 (patch) | |
tree | 88860bfcbb7206834e61533af79f7631b5638cb2 /src/server | |
parent | 7218e3bd4616d4706090ec47d72845a2bb89c6a3 (diff) |
lights with entity color, sunlight, network stats
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/server.cc | 11 |
1 files changed, 9 insertions, 2 deletions
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 <iostream> +#include <iomanip> + #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 |