remove cout uptime
This commit is contained in:
1 parent
06d0c573cd
commit
71da3eea03
1 file changed
+4
-4
@@ -7,10 +7,10 @@ void get_uptime(const httplib::Request &request, httplib::Response &response) {
|
|||||||
struct sysinfo x;
|
struct sysinfo x;
|
||||||
if (sysinfo(&x) == 0)
|
if (sysinfo(&x) == 0)
|
||||||
{
|
{
|
||||||
std::cout << static_cast<unsigned long long>(x.uptime)/3600ULL << "h "
|
// std::cout << static_cast<unsigned long long>(x.uptime)/3600ULL << "h "
|
||||||
<< static_cast<unsigned long long>(x.uptime)/60ULL%60ULL << "m "
|
// << static_cast<unsigned long long>(x.uptime)/60ULL%60ULL << "m "
|
||||||
<< static_cast<unsigned long long>(x.uptime)%60ULL << "s "
|
// << static_cast<unsigned long long>(x.uptime)%60ULL << "s "
|
||||||
<< std::endl;
|
// << std::endl;
|
||||||
std::stringstream responsedata;
|
std::stringstream responsedata;
|
||||||
responsedata << R"({"uptime":{"hour":")"
|
responsedata << R"({"uptime":{"hour":")"
|
||||||
<< static_cast<unsigned long long>(x.uptime)/3600ULL
|
<< static_cast<unsigned long long>(x.uptime)/3600ULL
|
||||||
|
|||||||
Reference in new issue
Block a user