mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
remove line ChronoWrapper.cpp:13 as discussed in review
This commit is contained in:
parent
5919fc6f47
commit
3c80bcbf01
@ -10,7 +10,6 @@ std::chrono::high_resolution_clock::duration ChronoWrapper::TimeFromStringWithLi
|
|||||||
float time_value;
|
float time_value;
|
||||||
if (!std::regex_search(time_str, match, time_regex)) return std::chrono::nanoseconds(0);
|
if (!std::regex_search(time_str, match, time_regex)) return std::chrono::nanoseconds(0);
|
||||||
time_value = stof(match.str(1));
|
time_value = stof(match.str(1));
|
||||||
beammp_debugf("Parsed time was: {}{}", time_value, match.str(2));
|
|
||||||
if (match.str(2) == "d") {
|
if (match.str(2) == "d") {
|
||||||
return std::chrono::seconds((uint64_t)(time_value * 86400)); //86400 seconds in a day
|
return std::chrono::seconds((uint64_t)(time_value * 86400)); //86400 seconds in a day
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user