Index | Thread | Search

From:
"Omar Polo" <op@omarpolo.com>
Subject:
Re: ifconfig wg: "humanify" last handshake
To:
Stuart Henderson <stu@spacehopper.org>
Cc:
tech@openbsd.org
Date:
Thu, 07 Aug 2025 10:38:32 +0200

Download raw body.

Thread
Stuart Henderson <stu@spacehopper.org> wrote:
> On 2025/08/06 16:34, Omar Polo wrote:
> > +	else if (delta > 60 * 60 * 2)
> > +		r = snprintf(buf, sizeof(buf), "%lld hours ago",
> > +		    delta / (60 * 60));
> > +	else if (delta > 60 * 2)
> > +		r = snprintf(buf, sizeof(buf), "%lld minutes ago",
> > +		    delta / 60);
> 
> "3 minutes ago" loses a lot of information compared to (180..239) seconds.

mmhh, yeah, you're right.  Honestly I don't look often at the last
handshake, usually just when something is not working, like the other
day, i care to look.

i also understand theo's point.

i'll continue runinng python to do the math to understand how much time
passed :-)


Sorry for the noise.

Cheers,
Omar Polo