From 71da3eea03748ee59b616ed2ca7f85b25fb2c296 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Fri, 12 Jul 2024 17:16:55 +0700 Subject: [PATCH] remove cout uptime --- openrouter/src/uptime/uptime.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openrouter/src/uptime/uptime.cpp b/openrouter/src/uptime/uptime.cpp index 0902c6b..066c00f 100644 --- a/openrouter/src/uptime/uptime.cpp +++ b/openrouter/src/uptime/uptime.cpp @@ -7,10 +7,10 @@ void get_uptime(const httplib::Request &request, httplib::Response &response) { struct sysinfo x; if (sysinfo(&x) == 0) { - std::cout << static_cast(x.uptime)/3600ULL << "h " - << static_cast(x.uptime)/60ULL%60ULL << "m " - << static_cast(x.uptime)%60ULL << "s " - << std::endl; + // std::cout << static_cast(x.uptime)/3600ULL << "h " + // << static_cast(x.uptime)/60ULL%60ULL << "m " + // << static_cast(x.uptime)%60ULL << "s " + // << std::endl; std::stringstream responsedata; responsedata << R"({"uptime":{"hour":")" << static_cast(x.uptime)/3600ULL