On Mon, 29 Sep 2025 13:32:33 -0400. Chet Ramey wrote:
> On 9/29/25 2:25 AM, Pourko via Bug reports for the GNU Bourne Again SHell 
> wrote:
> Function timeval_to_secs() takes as the last argument the unit-scale in which
> you want the fractional part returned to be in. When you call this function to
> get your fractional part in centiseconds or in milliseconds, all is good. But
> if you ask it to be in nanoseconds, then the number returned is just wrong.
> 
> There are no callers that request more than microsecond granularity.

Well, that function is not done properly, with this "don't bother" comment
in it. Before bash-5.3 you'd say "There are no callers that request more 
than millisecond granularity."  Then you needed to go there and change it 
to accommodate the TIMEFORMAT changes -- something you wouldn't need 
to do if that function was written properly to begin with.



Reply via email to