bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] command: time -- precision


From: Pourko
Subject: Re: [PATCH] command: time -- precision
Date: Tue, 30 Sep 2025 02:48:05 +0200 (CEST)

On Mon, 29 Sep 2025 14:39:32 -0400, Chet Ramey wrote:
> On 9/29/25 6:36 AM, Pourko wrote:
> > 6) Three bugs were fixed. A few other minor bugs are waiting for input from
> > the developer.
> 
> What are they?

I already sent them to you:

1) In: execute_cmd.c ln:1383

     sum = cpu / 100;
-    sum_frac = (cpu % 100) * 10;
+    sum_frac = (cpu % 100) * 10000;
     len = mkfmt (ts, 2, 0, sum, sum_frac);

2) In: execute_cmd.c ln:1480

       before.tms_utime = before.tms_stime = before.tms_cutime = 
before.tms_cstime = 0;
-      tbefore = shell_start_time;
+      tbefore = shell_start_time * get_clk_tck();
#endif

3) In: timeval.c ln:132 finction: timeval_to_secs() can prodice a wrong number.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]