From 1ee63f77523616d9abdbf41fc4b2218d83dd7e2d Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Fri, 23 Jun 2023 21:48:01 +0200 Subject: [PATCH] Fix stats error. --- src/main/java/biz/nellemann/jperf/Statistics.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/biz/nellemann/jperf/Statistics.java b/src/main/java/biz/nellemann/jperf/Statistics.java index 106c3e5..0db926c 100644 --- a/src/main/java/biz/nellemann/jperf/Statistics.java +++ b/src/main/java/biz/nellemann/jperf/Statistics.java @@ -27,6 +27,8 @@ public class Statistics { packesPerSec = packetsTransferred; timestamp1 = timestamp2; print(); + bytesTransferred = 0; + packetsTransferred = 0; } }