From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16773 invoked from network); 21 Nov 2023 09:25:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Nov 2023 09:25:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1700558734; b=cYRxVOhobfS8o2sOOqr1pteCvUfWAeN5v9a/dOGe0EpFbfVIflT4Vprx4wkK6O6IV8rTOeaR8c v29N7U1ZTmn+bD8tGTLU08+36Y0dBqDCjRFijGy6gJ0OY/+/SU5b5wgyufa/+07Kwttl/mqakk BIQle0Ovu6ZBbOlfquY79HG6Ie/qfQ7h8vjZLYV6gKov1fnITmnbO99ufXBwWMpos2WSEwqFmk XBWk7an2jW12DxkO8wwPNVK/J1dENnZAXRGJz3Jwbz7VEVvcsUv8UrPRc8psqZ66APtU8xVf+M KyWqHlfaE12IsQ7zzwQPTe0neKTfD5KemTT3mFvLs8zYkg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1700558734; bh=N5jG8idPOxm2s8ldeRwTcWGetA/5+OGO32rDYU5wxqA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:References:In-Reply-To:Subject:To:From:Date:DKIM-Signature: DKIM-Signature; b=VqXP5jjDMmG09TqH/okKzPItl0DmK2cOBkXCbrZ98AlR8xW+N3XUwD4FsNpa+JouZL99JDKhvf P41ZjWGegDKoykkqJLeyVxP5fcIp+p3/hjARmjm0aOGT/fnEwtugbtz51AglCbHqJ2d7mJk3cs OjDZhcj269Zd6eAE8ZMKanBqLnfzGdk0/taBcIYw6SSECGC6ZcpgOvavbAHDhttSziJsGq4BxC O8XizK1RVAf3d7HdTgvXRhCLmLdtS3gO0dffMN4oSjAAQoBJRK6sMViunGd/DiGz0DNeYQbk/J Lscd2cpr2yk01LvXe1Nfgdkhebj0gotGs23ALhbB6pC5OQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:References:In-Reply-To:Subject:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ydGjMtnCMKP9+rrOl2kdtKkAfmz5O7bveevJN80j1Tg=; b=at9Fy/S+3DQ+eoyMDZ7nUM7Dt0 vSjg/vz/F6RalV9lSRXo04tQjqH/kiulnfphtiV9UOsnRunPSOuu8G+YDlHIr+vEMTqiFoLW53q6t jb5CeVVqJYVdnk1yUmrMLJY1mDeBidMsbYLRvyqfcXoIjz1LbQB/kOcmUu3NzUvVF6FfAZvqyY3YN wafwh3/KDgbaPHW7mCFhq9LfliYNQtfZZkNwUzR0wmXlG2AmtL7xstBCM9BPttfsTFgKYG8IahwPV QF7IsztJ+PrSfTiNe85ewewQO9kzGIMUqNo8ZZX78Gh5VGbGxR/fgjI6O3Gs0Ltem6Zq65k0j9v8s gUPtc1ZA==; Received: by zero.zsh.org with local id 1r5N0e-000KGn-Ai; Tue, 21 Nov 2023 09:25:32 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq2-prd-nl1-vmo.edge.unified.services ([84.116.50.37]:63153) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1r5N0M-000K0a-H3; Tue, 21 Nov 2023 09:25:15 +0000 Received: from csmtp3-prd-nl1-vmo.nl1.unified.services ([100.107.82.133] helo=csmtp3-prd-nl1-vmo.edge.unified.services) by csmtpq2-prd-nl1-vmo.edge.unified.services with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1r5N0L-002xDd-E4 for zsh-workers@zsh.org; Tue, 21 Nov 2023 10:25:13 +0100 Received: from [127.0.0.1] ([82.132.225.15]) by csmtp3-prd-nl1-vmo.edge.unified.services with ESMTPA id 5N0KrbFO6gL1l5N0KrMSyD; Tue, 21 Nov 2023 10:25:13 +0100 X-SourceIP: 82.132.225.15 X-Authenticated-Sender: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.4 cv=dcqG32Xe c=1 sm=1 tr=0 ts=655c7779 cx=a_exe a=BWd/x4eQynMrP63ofbenlg==:117 a=BWd/x4eQynMrP63ofbenlg==:17 a=BNY50KLci1gA:10 a=q2GGsy2AAAAA:8 a=KVcb8CTdAAAA:8 a=Hu7p4_UGgDj2DnVEbbkA:9 a=QEXdDO2ut3YA:10 a=GjJ8VbR2V5uAuaRJUqkA:9 a=7QTBFMNh9FVdNEfi:21 a=_W_S_7VecoQA:10 a=z9dJwno5l634igLiVhy-:22 a=S-43D5-ehHa53BRj51ff:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1700558713; bh=ydGjMtnCMKP9+rrOl2kdtKkAfmz5O7bveevJN80j1Tg=; h=Date:From:To:Subject:In-Reply-To:References; b=lzkQfvOBE6SzwboAqKseGzvtnNDmFkaQLc3BRM+6oBzWar37YY/+qrROUBE0g/ij9 +VFDdPplm/zZRyLx3Hy/QuDNvMaHuVDexoznDkl82mxz1tqa2v2Bkx2cIOvDDwDPFQ UO+M9w1CZpGhoU3C5NpjDV0IkWRwus5cik/MAI4oHN7Op9tBMiPbvS8wVmZJvA82kF yIVvTl9V2AVruVYligVr2HaBWA5WCHSAS1mvoa+w16o0PAXztoMKtzekVuNriSPbqn 0GSCL77mAAb++i58LLJNKIGKUsU6qjNREcabIs6Bl3ZTn9pO6ZgeYZkUNVXLVng3vA HjJShIxrHACmQ== Date: Tue, 21 Nov 2023 09:25:11 +0000 From: Peter Stephenson To: Ram Rachum , zsh-workers@zsh.org Subject: Re: `time` doesn't say seconds User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <9658AE7C-58D0-43C7-89E2-F03090EECB06@ntlworld.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----B3DIG6PFM0HJEXXVS5KUMW50YYUXUF Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfFJF0ocwbnhEyDBED4MjBBRQbqoojT+Uq/Kz7x7pNoQteWcb4szz0+H9IK3TvK7hJNvq9QSEGZNEsyU2Mv/Cu2P+vyFTc0Uz+7RRRYsMyoNTsePjMDZN OLpnIEkMXJ8OmOpYK9bFuuaKKE0TLX9hNExZ/PmluRWWxhLgY1jR2rjDEUNzHBLXr6onOLe9YXfyG7RHVrzGqEdQPd+QZNYh9BDYfYp2oYhA1wFkfMxP+fvp X-Seq: 52317 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: ------B3DIG6PFM0HJEXXVS5KUMW50YYUXUF Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On 10/11/2023 17:26 GMT Bart Schaefer wrote= : > On Fri, Nov 10, 2023 at 5:25=E2=80=AFAM Ram Rachum wr= ote: > > > > If I understand correctly, the 11=2E230 number is 11=2E230 seconds, bu= t > > for some reason it doesn't have "s" after it like 11=2E41s and > > 0=2E90s=2E I think that it should=2E > > TIMEFMT=3D'%J %U user %S system %P cpu %E total' > > The default format instead uses %*E which drops the trailing "s" and > uses HH:MM:SS=2ETTT instead, but the HH and MM are also dropped when > zero=2E I meant to follow up to this one=2E It could be made more consistent by putting back the s in that last case, though=2E Without the colon indicating the meaning of the numbers (though MM:SS and HH:MM are also a bit ambiguous) this probably makes more sense=2E I don't know if anyone is likely to be automatically matching the current format? Given the variability of this element presumably not=2E diff --git a/Src/jobs=2Ec b/Src/jobs=2Ec index a3b9f667a=2E=2Ebb9246837 100644 --- a/Src/jobs=2Ec +++ b/Src/jobs=2Ec @@ -730,7 +730,7 @@ printhhmmss(double secs) else if (mins) fprintf(stderr, "%d:%05=2E2f", mins, secs); else - fprintf(stderr, "%=2E3f", secs); + fprintf(stderr, "%=2E3fs", secs); } =20 static void ------B3DIG6PFM0HJEXXVS5KUMW50YYUXUF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
> On 10/11/2023 17:26 GMT B= art Schaefer <schaefer@brasslantern=2Ecom> wrote:
> On Fri, Nov= 10, 2023 at 5:25=E2=80=AFAM Ram Rachum <ram@rachum=2Ecom> wrote:
= > >
> > If I understand correctly, the 11=2E230 number is 11= =2E230 seconds, but
> > for some reason it doesn't have "s" after = it like 11=2E41s and
> > 0=2E90s=2E I think that it should=2E
&= gt;
> TIMEFMT=3D'%J %U user %S system %P cpu %E total'
>
>= ; The default format instead uses %*E which drops the trailing "s" and
&= gt; uses HH:MM:SS=2ETTT instead, but the HH and MM are also dropped when> zero=2E

I meant to follow up to this one=2E

It could be= made more consistent by putting back the s in that last
case, though=2E= =C2=A0 Without the colon indicating the meaning of the numbers
(though M= M:SS and HH:MM are also a bit ambiguous) this probably makes
more sense= =2E

I don't know if anyone is likely to be automatically matching th= e
current format?=C2=A0 Given the variability of this element presumably= not=2E

diff --git a/Src/jobs=2Ec b/Src/jobs=2Ec
index a3b9f667a= =2E=2Ebb9246837 100644
--- a/Src/jobs=2Ec
+++ b/Src/jobs=2Ec
@@ -7= 30,7 +730,7 @@ printhhmmss(double secs)
=C2=A0=C2=A0=C2=A0=C2=A0 else if= (mins)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fprintf(stderr,=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 "%d:%05=2E2f",=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 mins, secs);
=C2=A0=C2=A0=C2=A0=C2=A0 else
-=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 fprintf(stderr,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 "%=2E3f",=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 secs);
+=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 fprintf(stderr,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 "%=2E3fs",=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 secs);
}

static void
<= /html> ------B3DIG6PFM0HJEXXVS5KUMW50YYUXUF--