--- smsdaemon/embedded-http/embeddedhttp.cpp 2010/04/28 07:38:39 680 +++ smsdaemon/embedded-http/embeddedhttp.cpp 2010/04/28 08:51:24 683 @@ -9,6 +9,7 @@ #include "Common.h" #include "ConfigFile.h" #include +#include #include void show_secret(struct mg_connection *conn, const struct mg_request_info *request_info, void *user_data) { @@ -28,7 +29,10 @@ os << "Status:" << std::endl; os << "Recv: " << cmn->smsCounter.incomming << std::endl; os << "Send: " << cmn->smsCounter.outgoing << std::endl; - os << "Uptime: " << days << "d, " << hour << ":" << min << ":" << sec; + os << "Uptime: " << days << "d, "; + os << std::setw(2) << std::setfill('0') << hour << ":"; + os << std::setw(2) << min << ":" ; + os << std::setw(2) << sec; mg_printf(conn, "%s", "HTTP/1.1 200 OK\r\n"); mg_printf(conn, "%s", "Content-Type: text/plain\r\n\r\n");