Commits

Jing Conan Wang  committed 665a2e4

add shift_time() to PreloadHardDiskFile

  • Participants
  • Parent commits ffc9d0e

Comments (0)

Files changed (1)

File Detector/Data.py

         self.min_time = min(self.t)
         self.max_time = max(self.t)
 
+    def shift_time(self, st):
+        self.table['start_time'] += st
+        self.t += st
+
     def get_where(self, rg=None, rg_type=None):
         if not rg:
             return 0, self.row_num