statusip: Simplify sleep.

This commit is contained in:
tastytea 2021-08-24 22:20:00 +02:00
parent 27e92a2c4b
commit 74bacf5029
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 2 deletions

View File

@ -97,7 +97,6 @@ std::string get_ipv4(const std::string_view url)
int main(int argc, char *argv[])
{
using clock = std::chrono::system_clock;
using namespace std::chrono_literals;
try
@ -133,7 +132,7 @@ int main(int argc, char *argv[])
RestClient::disable();
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)