On 18.08.2022 18:34, Anthony PERARD wrote: > On Thu, Aug 18, 2022 at 04:05:37PM +0200, Jan Beulich wrote: >> @@ -242,13 +238,11 @@ static void dump_stats(void) >> smt++; >> } >> >> - printf("processed %d total records in %d seconds (%ld per second)\n", >> - rec_count, (int)run_time, >> - run_time ? (long)(rec_count/run_time) : 0L); >> + printf("processed %d total records in %0f seconds (%0f per second)\n", > > Did you want to write "%.0f" or even "%.f" instead of "%0f"? It seems > that the '0' here mean '0'-padded, but without field width there would > be nothing to pad. I'm guessing you would want printf to write something > like "266 seconds" instead of "266.646168 seconds". Am I missing > something ?
Indeed, I did miss the . in all cases. How embarrassing ... Jan