Skip to content

Commit

Permalink
Better code doc
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Nov 28, 2019
1 parent 0e658ba commit c0288de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions w3af/core/data/url/get_average_rtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

import w3af.core.controllers.output_manager as om

from w3af.core.data.statistics.utils import outliers_modified_z_score
from w3af.core.data.misc.encoding import smart_str_ignore


Expand Down Expand Up @@ -159,9 +158,12 @@ def _has_outliers(self, rtts):
:param rtts: The list of RTT obtained by _get_rtts
:return: True if the list of rtts has one or more outliers.
"""
#
# TODO: perform outlier analysis
#
# https://github.com/andresriancho/w3af/commit/9494b49acab10833f629fae58dcc104b37f9720f
#
return False
outlier_analyis = outliers_modified_z_score(rtts)
return None in outlier_analyis

def _get_specific_rtt_mutant_lock(self, cache_key):
with self._rtt_mutant_lock:
Expand Down

0 comments on commit c0288de

Please sign in to comment.