Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1023 committed - Fixed real-time speed calculation in Flash client

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1023 committed - Fixed real-time speed calculation in Flash client


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1023 committed - Fixed real-time speed calculation in Flash client
  • Date: Tue, 18 Mar 2014 11:06:11 +0000

Revision: 1023
Author:

Date: Tue Mar 18 11:06:03 2014 UTC
Log: Fixed real-time speed calculation in Flash client

http://code.google.com/p/ndt/source/detail?r=1023

Modified:
/branches/Issue131/flash-client/src/TestC2S.as
/branches/Issue131/flash-client/src/TestResultsUtils.as

=======================================
--- /branches/Issue131/flash-client/src/TestC2S.as Wed Mar 12 12:17:39 2014 UTC
+++ /branches/Issue131/flash-client/src/TestC2S.as Tue Mar 18 11:06:03 2014 UTC
@@ -259,7 +259,9 @@
_c2sSendCount * NDTConstants.PREDEFINED_BUFFER_SIZE
+ (NDTConstants.PREDEFINED_BUFFER_SIZE - _c2sBytesNotSent));

- TestResults.ndt_test_results::c2sSpeed = (c2sByteSent * NDTConstants.BYTES2BITS);
+ TestResults.ndt_test_results::c2sSpeed = (c2sByteSent
+ * NDTConstants.BYTES2BITS
+ / _c2sTestDuration);
}

private function startTest():void {
=======================================
--- /branches/Issue131/flash-client/src/TestResultsUtils.as Sun Feb 2 19:14:17 2014 UTC
+++ /branches/Issue131/flash-client/src/TestResultsUtils.as Tue Mar 18 11:06:03 2014 UTC
@@ -75,9 +75,9 @@
case "TestDuration":
return TestResults.duration.toString();
case "ClientToServerSpeed":
- return TestResults.ndt_test_results::c2sSpeed.toString();
+ return (TestResults.ndt_test_results::c2sSpeed / 1000).toString();
case "ServerToClientSpeed":
- return TestResults.ndt_test_results::s2cSpeed.toString();
+ return (TestResults.ndt_test_results::s2cSpeed / 1000).toString();
case "Jitter":
return TestResults.jitter.toString();
case "OperatingSystem":



Archive powered by MHonArc 2.6.16.

Top of Page