From fbfa3adc42ab26b875cc92f0c2398c35281d191a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 16 Mar 2014 19:33:25 +0900 Subject: [PATCH] h2load: traffic bytes data should be based on all traffic --- src/h2load.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h2load.cc b/src/h2load.cc index c5467c32..1523f026 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -887,7 +887,7 @@ int main(int argc, char **argv) if(duration > 0) { auto secd = static_cast(duration) / (1000 * 1000); rps = worker.stats.req_todo / secd; - kbps = (worker.stats.bytes_head + worker.stats.bytes_body) / secd / 1024; + kbps = worker.stats.bytes_total / secd / 1024; } else { rps = 0; kbps = 0;