diff --git a/Collectors/DetailedCollector.py b/Collectors/DetailedCollector.py index 78ef2de..d2fa31e 100755 --- a/Collectors/DetailedCollector.py +++ b/Collectors/DetailedCollector.py @@ -135,7 +135,7 @@ def addRecord(self, sid, userID, fileClose, timestamp, addr, openTime): rec['readv'] = fileClose.readv rec['write'] = fileClose.write - if fileClose.ops: + if isinstance(fileClose, decoding.fileClose) and fileClose.ops: # read_average (optional) try: rec['read_average'] = (fileClose.read + fileClose.readv) / (fileClose.ops.read + fileClose.ops.readv)