From d08d1c91271b12f4deecd775a621326f376d0e84 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 23 Feb 2015 17:54:51 -0500 Subject: [PATCH] show uptime properly --- HTTPServer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index fc2fc060..adf62298 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -646,12 +646,12 @@ namespace util void HTTPConnection::FillContent (std::stringstream& s) { - s << "

Welcome to the Webconsole!



"; - s << "Uptime: " << - s << "Data path: " << i2p::util::filesystem::GetDataDir().string() << "
" << "
"; - s << "Our external address:" << boost::posix_time::to_simple_string ( + s << "

Welcome to the Webconsole!


"; + s << "Uptime: " << boost::posix_time::to_simple_string ( boost::posix_time::time_duration (boost::posix_time::seconds ( - i2p::context.GetUptime ()))) << "

"; + i2p::context.GetUptime ()))) << "
"; + s << "Data path: " << i2p::util::filesystem::GetDataDir().string() << "

"; + s << "Our external address:" << "
" ; for (auto& address : i2p::context.GetRouterInfo().GetAddresses()) { switch (address.transportStyle)