GNU bug report logs - #34345
dd: report elapsed time as HH:MM:SS.NNNNNNN

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: L A Walsh <coreutils@HIDDEN>; dated Wed, 6 Feb 2019 11:51:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'dd: report elapsed time as HH:MM:SS.NNNNNNN' from 'coreutils v.8.30 – Two fractional digits accuracy. Appropriate notation regarding time elapsed.' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 34345 <at> debbugs.gnu.org:


Received: (at 34345) by debbugs.gnu.org; 8 Feb 2019 21:10:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 08 16:10:31 2019
Received: from localhost ([127.0.0.1]:40187 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gsDPr-0004RL-1z
	for submit <at> debbugs.gnu.org; Fri, 08 Feb 2019 16:10:31 -0500
Received: from mail-pf1-f173.google.com ([209.85.210.173]:41365)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>)
 id 1gsDPl-0004Qt-VH; Fri, 08 Feb 2019 16:10:26 -0500
Received: by mail-pf1-f173.google.com with SMTP id b7so2242710pfi.8;
 Fri, 08 Feb 2019 13:10:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=kP1NMYocecf847v7NWpYYYIxI/70xGS7SObGrD7xiZA=;
 b=pflfRmNEaaqfUbS+oZ07YctpOwcNs6dU84priOmBeYdxX1699HiB2VwWyzT1guR4Fl
 zrOBacFClnqQQwRGt+wsmC49klgm9F5Ftz9w9eddLzvh4UEPsDcEP1aegHoZVvMxhF+i
 owe5eHhu81wJZuPjLbtScFbnWQdJB1PJ5WOA1LZSuhk6ceDHsZDUcq02Oq4QCI13MfCm
 JxmLcZV8DH5UO1NnyDUmN+ye/m7ZAmIM6+goJo0QA6VhBUA2tFedx5YSwSj7oq8p4l1G
 XY7t7FRDpYkBPl/xYpnni0oFPDP2SW2qhcTPAsheknuATgK3Uh2iagcAvpxkqB8YWiX3
 mqrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=kP1NMYocecf847v7NWpYYYIxI/70xGS7SObGrD7xiZA=;
 b=VEQGnAmkeMrWgjG/6iBif0ErwodEa/d3ELQIkARH+LdsN03SyFEJAv2XxEKfNvxbqu
 UT2tDmFjniOIp4VPGdo3chrJ1hDzuXV2TGI2QoGdefzRg1kMMM0ZTMS7LyVTYo67NPwN
 MT40sitc3EzaDl2b9F24lDeJMWwcglD6nVUcnCxCMErDZtTWdVAEf/34vJRl5Verp3Vk
 jeolobmdjD9Lp458gps0uDmkYxDIyXPmKFau3/zxmFDrV4XhU3tKA2OMQ7oy+Gs09/A2
 arlJI0N6DeslIBvdEvWBy3W1t7FxtMUVXWaqeFeM6K2XXX4PSFv9GtN+3g+1R8X1tnCn
 Julw==
X-Gm-Message-State: AHQUAuZJq8YDAryX7orBYBZIdRccxvYJOh2CAwdsugqRTF12bTgkV41I
 QAN7lQE9p0c8VfNxf0SZDIBN4U8Y
X-Google-Smtp-Source: AHgI3IauptUJ5thip45Eo3Rh2GWsVZ0HshtiYCul0zpVRSFVTYYb2147pbf4Fz1TBtQmzJZ6+afQsQ==
X-Received: by 2002:a63:ed03:: with SMTP id d3mr22020087pgi.275.1549660219626; 
 Fri, 08 Feb 2019 13:10:19 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 4sm3939118pfq.10.2019.02.08.13.10.17
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 08 Feb 2019 13:10:18 -0800 (PST)
Subject: =?UTF-8?B?UmU6IGJ1ZyMzNDM0NTogY29yZXV0aWxzIHYuOC4zMCDigJMgVHdvIGZy?=
 =?UTF-8?Q?actional_digits_accuracy=2e_Appropriate_notation_regarding_time_e?=
 =?UTF-8?Q?lapsed=2e?=
To: L A Walsh <coreutils@HIDDEN>, ricky.tigg@HIDDEN,
 34345 <at> debbugs.gnu.org
References: <CAM_8-CjM5y61tK+qBerco8aHwg+A3q8bLq=taiJ-Bmq=Ng_tJg@HIDDEN>
 <5C5AC9DA.7030707@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <4638571e-e97a-8b9e-8c46-5da9abc83c51@HIDDEN>
Date: Fri, 8 Feb 2019 14:10:17 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <5C5AC9DA.7030707@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34345
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 34345 wishlist
retitle 34345 dd: report elapsed time as HH:MM:SS.NNNNNNN
stop

Hello,

Ricky Tigg's original message was sent to coreutils@HIDDEN
(not to bug-coreutils@HIDDEN), and did not create a new bug report:

    https://lists.gnu.org/r/coreutils/2019-02/msg00003.html

This is of course absolutely fine - but PLEASE keep the same mailing 
list when replying (e.g. don't reply to bug-coreutils@HIDDEN if
the message was sent to coreutils@HIDDEN).

The original message said:

On 2019-02-06 2:36 a.m., Ricky Tigg wrote:
 > Enhancements request
 > Hi. Command executed:
 >
 > # dd if=/dev/zero of=/dev/sdc status=progress
 > 8003555840 bytes (8.0 GB, 7.5 GiB) copied, 1994 s, 4.0 MB/s
 > dd: writing to '/dev/sdc': No space left on device
 > 15638481+0 records in
 > 15638480+0 records out
 > 8006901760 bytes (8.0 GB, 7.5 GiB) copied, 2014.25 s, 4.0 MB/s
 >
 >
 >     - Could values reported at '(8.0 GB, 7.5 GiB)' be displayed using 
a two
 >     fractional digits accuracy (model 1.23 GiB).

That is not likely to change.
The printing code uses a common function (human_readable) that is used
in several other coreutils programs, and the convention is to print up
to 3 digits (or 2 digits with one decimal point).
Examples:
    1.1 KB
     11 KB
    111 KB
     11 MB
    111 MB
    1.1 GB
     11 GB
    111 GB
    1.1 TB

The exact number of bytes is printed at the beginning of the line,
and you can use 'numfmt' to format it to your liking:

     $ dd if=/dev/zero of=/dev/zero bs=1M count=10 2>&1 \
           | tail -n1 | numfmt --to=si --format '%2.5f'
     10.48576M bytes (10 MB, 10 MiB) copied, 0.00315612 s, 3.3 GB/s


 >     - Could values reported at '1994 s', '2014.25 s' to be displayed
 >     according to notation <*hour*>*h*<*minutes*>*'*<*seconds*>*''*.

An interesting idea.
I couldn't find previous discussion about it, so I'll mark this item
as a "wishlist".

As always, patches are welcomed.

 > Potential issue:
 > Since values '1994 s', '2014.25 s' expressed here may in the present
 > context cover nothing but a same object, non-identical values may be
 > interpreted as a programming issue. Regards.

I don't understand the above - can you clarify ?

regards,
  - assaf





Information forwarded to bug-coreutils@HIDDEN:
bug#34345; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Feb 2019 11:50:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 06 06:50:10 2019
Received: from localhost ([127.0.0.1]:34069 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1grLiS-0006uK-HJ
	for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 06:50:08 -0500
Received: from eggs.gnu.org ([209.51.188.92]:45989)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coreutils@HIDDEN>) id 1grLiQ-0006tr-KG
 for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 06:50:06 -0500
Received: from lists.gnu.org ([209.51.188.17]:41898)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1grLiK-0005fr-5w
 for submit <at> debbugs.gnu.org; Wed, 06 Feb 2019 06:50:01 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60351)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1grLiJ-0003f2-FL
 for bug-coreutils@HIDDEN; Wed, 06 Feb 2019 06:50:00 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1grLiH-0005cI-IS
 for bug-coreutils@HIDDEN; Wed, 06 Feb 2019 06:49:58 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:34404
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <coreutils@HIDDEN>) id 1grLiD-0005WH-UH
 for bug-coreutils@HIDDEN; Wed, 06 Feb 2019 06:49:55 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 x16BnktS079419; Wed, 6 Feb 2019 03:49:49 -0800
Message-ID: <5C5AC9DA.7030707@HIDDEN>
Date: Wed, 06 Feb 2019 03:49:46 -0800
From: L A Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: Ricky Tigg <ricky.tigg@HIDDEN>, Coreutils <bug-coreutils@HIDDEN>
Subject: Re: coreutils v.8.30 =?UTF-8?B?4oCTIFR3byBmcmFjdGlvbmFsIGRpZ2l0cw==?=
 =?UTF-8?B?IGFjY3VyYWN5LiBBcHByb3ByaWF0ZSBub3RhdGlvbiByZWdhcmRpbmcgdGltZSA=?=
 =?UTF-8?B?ZWxhcHNlZC4=?=
References: <CAM_8-CjM5y61tK+qBerco8aHwg+A3q8bLq=taiJ-Bmq=Ng_tJg@HIDDEN>
In-Reply-To: <CAM_8-CjM5y61tK+qBerco8aHwg+A3q8bLq=taiJ-Bmq=Ng_tJg@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic]
X-Received-From: 173.164.175.65
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2/6/2019 1:36 AM, Ricky Tigg wrote:
> Enhancements request
> Hi. Command executed:
>
>
>    - Could values reported at '(8.0 GB, 7.5 GiB)' be displayed using a two
>    fractional digits accuracy (model 1.23 GiB).
>   
----
    Nahhhhh....

Implies more accuracy than there is.

    Use 2-3 digits for reporting.  That way it can be displayed as
2-3 digits, if choice.  If value is between 2 endpoings, choose the
one that keeps the most bits, like 23.5->23, 34.5->35, basically round
to odd.

> entical values may be
> interpreted as a programming issue. Regards.
>   




Acknowledgement sent to L A Walsh <coreutils@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#34345; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 8 Feb 2019 21:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.