0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

Time::delta_str(): use "INF" to denote infinite time

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2018-07-31 23:45:53 -06:00 committed by Lev Stipakov
parent 0e598a87b2
commit bf00c6e3ed

View File

@ -268,6 +268,8 @@ namespace openvpn {
{
if (!defined())
return "UNDEF-TIME";
if (is_infinite())
return "INF";
const double df = delta_float(t);
std::string ret;
if (df >= 0.0)