Skip to content

Commit

Permalink
Fix one more old report call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Dryabzhinsky committed May 29, 2021
1 parent 81575c3 commit 7f8e323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dedupsqlfs/fuse/helpers/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def get_table(self, name):
def get_option(self, key):
return self.application.getOption(key)

def do_print_stats_ontime(self):
def do_print_stats_ontime(self, force=False):
t_now = time()
if t_now - self.timing_report_last_run >= self.report_interval:
if t_now - self.timing_report_last_run >= self.report_interval or force:
self.timing_report_last_run = t_now
self.__print_stats()
return
Expand Down
2 changes: 1 addition & 1 deletion dedupsqlfs/fuse/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def destroy(self): # {{{3
self.getManager().commit()

if self.getOption("verbosity") > 1:
self.__print_stats()
self.reportHelper.do_print_stats_ontime(True)

self.getManager().getTable('option').update('mounted', 0)
self.getManager().commit()
Expand Down

0 comments on commit 7f8e323

Please sign in to comment.