From: Renaud Allard Subject: Re: ifconfig wg: "humanify" last handshake To: tech@openbsd.org Date: Thu, 7 Aug 2025 14:56:13 +0200 On 8/7/25 10:38 AM, Omar Polo wrote: > Stuart Henderson 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 :-) > That's just an idea, but what about adding a "-h" flag like in df(1)?