Browse Source

corrected minor error in calculating the statistics

thomas 4 years ago
parent
commit
1b29a6686a
1 changed files with 1 additions and 1 deletions
  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) {