Skip to Content.
Sympa Menu

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

Subject: NDT-DEV email list created

List archive

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


Chronological Thread 
  • From: Tiziana Refice <>
  • To:
  • Cc: "<>" <>
  • Subject: Re: [ndt-dev] [ndt] r1023 committed - Fixed real-time speed calculation in Flash client
  • Date: Wed, 19 Mar 2014 09:27:15 +0000

Could you use the constants in https://code.google.com/p/ndt/source/browse/trunk/flash-client/src/NDTConstants.as, instead of hardcoded numbers?


On Tue, Mar 18, 2014 at 11:06 AM, <> wrote:
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