[rygel/wip/basic-management: 63/68] core: BasicManagement Ping: Fix rtt parsing order (min/avg/max)



commit e361b0dcc9e0330fa712fb007bc83f376bbcd0e0
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date:   Mon Jun 24 10:37:13 2013 +0300

    core: BasicManagement Ping: Fix rtt parsing order (min/avg/max)

 .../rygel-basic-management-test-ping.vala          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-core/rygel-basic-management-test-ping.vala 
b/src/librygel-core/rygel-basic-management-test-ping.vala
index 72ed796..8bb7a57 100644
--- a/src/librygel-core/rygel-basic-management-test-ping.vala
+++ b/src/librygel-core/rygel-basic-management-test-ping.vala
@@ -229,9 +229,9 @@ internal class Rygel.BasicManagementTestPing : BasicManagementTest {
                 if (rtt.length >= 2) {
                     var rtt_values = rtt[1].split ("/", 4);
                     if (rtt_values.length >= 3) {
-                        this.avg_response_time = (uint) Math.round (
-                                                  double.parse (rtt_values[0]));
                         this.min_response_time = (uint) Math.round (
+                                                  double.parse (rtt_values[0]));
+                        this.avg_response_time = (uint) Math.round (
                                                   double.parse (rtt_values[1]));
                         this.max_response_time = (uint) Math.round (
                                                   double.parse (rtt_values[2]));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]