Explorar el Código

corrected minor error in calculating the statistics

thomas hace 4 años
padre
commit
1b29a6686a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/ua-stress-test/main.cpp

+ 1 - 1
src/ua-stress-test/main.cpp

@@ -97,7 +97,7 @@ void workerThread()
     cout << "\tRequests sent: " << reqId << endl;
     cout << "\tResponses received: " << d.numberOfResponesReceived << endl;
     cout << "\tRuntime(ms): " << (std::chrono::duration_cast<std::chrono::milliseconds>(endTime-startTime)).count() << endl;
-    cout << "\tRequests sent per s: " << ((double)reqId) / (std::chrono::duration_cast<std::chrono::seconds>(endTime-startTime)).count() << endl;
+    cout << "\tRequests sent per s: " << ((double)reqId) / (std::chrono::duration_cast<std::chrono::milliseconds>(endTime-startTime)).count() * 1000.0 << endl;
 }
 
 int main(int argc, char **argv) {