Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/server.cc')
-rw-r--r--src/server/server.cc11
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