Re: [PATCH] app/flow-perf: fix logic to add comma every three digits

2022-06-13 Thread Rahul Lakkireddy
On Friday, June 06/10/22, 2022 at 16:45:22 -0700, Stephen Hemminger wrote: > On Sat, 11 Jun 2022 03:36:43 +0530 > Rahul Lakkireddy wrote: > > > Add comma after 1 in 1000 too, like 1,000. Also, since max uint64_t is > > a 20 digit number, increase space in temporary array to hold 20 digits. > > Fi

Re: [PATCH] app/flow-perf: fix logic to add comma every three digits

2022-06-10 Thread Stephen Hemminger
On Sat, 11 Jun 2022 03:36:43 +0530 Rahul Lakkireddy wrote: > Add comma after 1 in 1000 too, like 1,000. Also, since max uint64_t is > a 20 digit number, increase space in temporary array to hold 20 digits. > Fixes following warnings when using optimization=1 build flag with > GCC 11. > > ../app/

[PATCH] app/flow-perf: fix logic to add comma every three digits

2022-06-10 Thread Rahul Lakkireddy
Add comma after 1 in 1000 too, like 1,000. Also, since max uint64_t is a 20 digit number, increase space in temporary array to hold 20 digits. Fixes following warnings when using optimization=1 build flag with GCC 11. ../app/test-flow-perf/main.c: In function ‘pretty_number’: ../app/test-flow-perf