From: Eric Wong Date: Sun, 17 Oct 2021 09:52:47 +0000 (-1100) Subject: extindex: use localtime to display lock time X-Git-Tag: v1.7.0~115 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=84897536c91023566556d3564da6f3d4316f557e extindex: use localtime to display lock time 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. --- diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 69d048fb..67d72036 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 <