statusip: Simplify sleep.
This commit is contained in:
parent
27e92a2c4b
commit
74bacf5029
@ -97,7 +97,6 @@ std::string get_ipv4(const std::string_view url)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
using clock = std::chrono::system_clock;
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -133,7 +132,7 @@ int main(int argc, char *argv[])
|
|||||||
RestClient::disable();
|
RestClient::disable();
|
||||||
|
|
||||||
std::cout << format_responses(ipv6, ipv4) << std::endl;
|
std::cout << format_responses(ipv6, ipv4) << std::endl;
|
||||||
std::this_thread::sleep_until(clock::now() + 10min);
|
std::this_thread::sleep_for(10min);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const std::exception &e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user