Commit fbfa3adc authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: traffic bytes data should be based on all traffic

parent 775d07ac
......@@ -887,7 +887,7 @@ int main(int argc, char **argv)
if(duration > 0) {
auto secd = static_cast<double>(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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment