فهرست منبع

Realistic Timestamp adjustments in Statistics File

Marcel Juschak 6 سال پیش
والد
کامیت
76eeed5980
1فایلهای تغییر یافته به همراه6 افزوده شده و 7 حذف شده
  1. 6 7
      code/ID2TLib/Statistics.py

+ 6 - 7
code/ID2TLib/Statistics.py

@@ -646,23 +646,22 @@ class Statistics:
             if(local_conv):
                 for conv in local_conv:
                     avg_delay_local += conv[2]
-                avg_delay_local = avg_delay_local/len(local_conv)
+                avg_delay_local = (avg_delay_local/len(local_conv)) * 0.001 #ms
             else:
                 # no local conversations in statistics found
-                avg_delay_local = 120.0
+                avg_delay_local = 0.06
 
             if(external_conv):
                 for conv in external_conv:
                     avg_delay_external += conv[2]
-                avg_delay_external = avg_delay_external/len(external_conv)
+                avg_delay_external = (avg_delay_external/len(external_conv)) * 0.001 #ms
             else:
                 # no external conversations in statistics found
-                avg_delay_external = 8000.0
+                avg_delay_external = 0.15
         else:
             #if no statistics were found, use these numbers
-            avg_delay_external = 8000.0
-            avg_delay_local = 120.0
-
+            avg_delay_external = 0.15
+            avg_delay_local = 0.06
         return avg_delay_local, avg_delay_external
 
     def filter_multiples(self, entries):