fix: bl_file diff when clear memory cache is enabled
This commit is contained in:
parent
8861986213
commit
e1d9982276
@ -135,6 +135,9 @@ class BlFile(ReplicatedDatablock):
|
||||
file.close()
|
||||
|
||||
def diff(self):
|
||||
memory_size = sys.getsizeof(self.data['file'])-33
|
||||
disk_size = self.instance.stat().st_size
|
||||
return memory_size == disk_size
|
||||
if self.preferences.clear_memory_filecache:
|
||||
return False
|
||||
else:
|
||||
memory_size = sys.getsizeof(self.data['file'])-33
|
||||
disk_size = self.instance.stat().st_size
|
||||
return memory_size == disk_size
|
||||
|
Loading…
Reference in New Issue
Block a user