Skip to content

Commit 0ab1ded

Browse files
authored
Fix dxt comflict with recorder (#13)
1 parent a755fe2 commit 0ab1ded

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drishti/includes/module.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import datetime
44
import csv
5+
import time
56
from rich import box
67
from rich.syntax import Syntax
78
from drishti.includes.config import *
@@ -128,7 +129,7 @@ def check_size_intensive(total_size, total_read_size, total_written_size):
128129
)
129130

130131

131-
def check_small_operation(total_reads, total_reads_small, total_writes, total_writes_small, detected_files, modules, file_map, df_posix):
132+
def check_small_operation(total_reads, total_reads_small, total_writes, total_writes_small, detected_files, modules, file_map, df_posix=None):
132133
'''
133134
Check whether application has performed an excessive number of small operations
134135
@@ -258,6 +259,8 @@ def check_small_operation(total_reads, total_reads_small, total_writes, total_wr
258259
total_writes_small, total_writes_small / total_writes * 100.0
259260
)
260261

262+
dxt_trigger_time = 0
263+
261264
detail = []
262265
recommendation = []
263266

0 commit comments

Comments
 (0)