Przeglądaj źródła

corrected minor error in calculating the statistics

thomas 4 lat temu
rodzic
commit
1b29a6686a
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {