h2load: traffic bytes data should be based on all traffic

This commit is contained in:
Tatsuhiro Tsujikawa 2014-03-16 19:33:25 +09:00
parent 775d07ace4
commit fbfa3adc42
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ int main(int argc, char **argv)
if(duration > 0) { if(duration > 0) {
auto secd = static_cast<double>(duration) / (1000 * 1000); auto secd = static_cast<double>(duration) / (1000 * 1000);
rps = worker.stats.req_todo / secd; 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 { } else {
rps = 0; rps = 0;
kbps = 0; kbps = 0;