瀏覽代碼

Add return field to a docstring

dustin.born 7 年之前
父節點
當前提交
d9649242d9
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      code/Attack/MembersMgmtCommAttack.py

+ 1 - 0
code/Attack/MembersMgmtCommAttack.py

@@ -668,6 +668,7 @@ class MembersMgmtCommAttack(BaseAttack.BaseAttack):
     def _get_capture_duration(self):
         """
         Returns the duration of the input PCAP (since statistics duration seems to be incorrect)
+        :return: the duration as a string in the format seconds.microseconds
         """
         ts_date_format = "%Y-%m-%d %H:%M:%S.%f"
         ts_first_date = datetime.strptime(self.statistics.get_pcap_timestamp_start(), ts_date_format)