Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
Re: ifconfig wg: "humanify" last handshake
To:
"Omar Polo" <op@omarpolo.com>
Cc:
Stuart Henderson <stu@spacehopper.org>, tech@openbsd.org
Date:
Thu, 07 Aug 2025 12:42:41 +0200

Download raw body.

Thread
On Thu, 07 Aug 2025 10:38:32 +0200,
"Omar Polo" <op@omarpolo.com> wrote:
> 
> i'll continue runinng python to do the math to understand how much time
> passed :-)
>

Here a bit ugly hack but it allows to convert seconds to humanify date:

~ $ date -ur $(doas ifconfig wg0 | grep 'last handshake' | cut -d ' ' -f 3) 
Thu Jan  1 00:00:48 UTC 1970
~ $ 


-- 
wbr, Kirill