mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
ndp: Fix libxo formatting for the prefix expiry string
Fixes: e1c7783e22
("ndp(8): add structured output formatting via libxo")
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Bell Tower Integration
This commit is contained in:
parent
5862c891bb
commit
b387776788
@ -1334,7 +1334,7 @@ plist(void)
|
||||
if (p->expire == 0)
|
||||
xo_emit(", expire=Never{en:permanent/true}");
|
||||
else if (p->expire >= now.tv_sec)
|
||||
xo_emit(", expire=%s{e:expires_sec/%d}",
|
||||
xo_emit(", expire={:expires/%s}{e:expires_sec/%d}",
|
||||
sec2str(expire_in), expire_in);
|
||||
else
|
||||
xo_emit(", expired{e:expires_sec/%d}", expire_in);
|
||||
|
Loading…
Reference in New Issue
Block a user