From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 785641F9F3 for ; Sun, 17 Oct 2021 09:52:50 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] extindex: use localtime to display lock time Date: Sat, 16 Oct 2021 22:52:47 -1100 Message-Id: <20211017095250.22252-2-e@80x24.org> In-Reply-To: <20211017095250.22252-1-e@80x24.org> References: <20211017095250.22252-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Since this is intended for use on the command-line, include TZ offset in time and try to shorten the message a bit so it wraps less on a terminal. --- lib/PublicInbox/ExtSearchIdx.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 69d048fb7342..67d720368922 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -719,11 +719,12 @@ sub eidxq_lock_acquire ($) { return $locked if $locked eq $cur; } my ($pid, $time, $euid, $ident) = split(/-/, $cur, 4); - my $t = strftime('%Y-%m-%d %k:%M:%S', gmtime($time)); + my $t = strftime('%Y-%m-%d %k:%M %z', localtime($time)); + local $self->{current_info} = 'eidxq'; if ($euid == $> && $ident eq host_ident) { if (kill(0, $pid)) { warn <