generator service: refactor var names,types
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-03 08:53:54 +01:00
parent 3e4fb10414
commit c6695f4be3
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -80,15 +80,15 @@ namespace fortuna {
fmt::print("[i] fortuna: starting generator service\n");
int i{0};
uint sleep_time{1000}; // in ms
auto now{fortuna::Util::current_time()};
std::chrono::system_clock::time_point time_point;
while(true) {
fmt::print("sleeping [{}]\n", i);
++i;
now = fortuna::Util::current_time();
fmt::print("[*] g: @{}\n", now);
time_point = fortuna::Util::current_time();
fmt::print("[*] g: @{}\n", time_point);
std::this_thread::sleep_until(
now + std::chrono::milliseconds(sleep_time)
time_point + std::chrono::milliseconds(sleep_time)
);
}
}