Make total_time from '+='' to '=' when test rte_lpm6_delete

Signed-off-by: Su Sai <[email protected]>
---
 .mailmap                  | 1 +
 app/test/test_lpm6_perf.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index fcb3d1bb3f..1bd625811b 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1644,6 +1644,7 @@ Sunyang Wu <[email protected]>
 Surabhi Boob <[email protected]>
 Sushmita Hoskeri <[email protected]>
 Suyang Ju <[email protected]>
+Su Sai <[email protected]> <[email protected]>
 Sylvain Rodon <[email protected]>
 Sylvia Grundw??rmer <[email protected]>
 Sylwester Dziedziuch <[email protected]>
diff --git a/app/test/test_lpm6_perf.c b/app/test/test_lpm6_perf.c
index 1860a99ed6..7b295a5752 100644
--- a/app/test/test_lpm6_perf.c
+++ b/app/test/test_lpm6_perf.c
@@ -148,7 +148,7 @@ test_lpm6_perf(void)
                                large_route_table[i].depth);
        }
 
-       total_time += rte_rdtsc() - begin;
+       total_time = rte_rdtsc() - begin;
 
        printf("Average LPM Delete: %g cycles\n",
                        (double)total_time / NUM_ROUTE_ENTRIES);
-- 
2.39.2 (Apple Git-143)

Reply via email to