thumbnail cleaner too noisy

This commit is contained in:
ed 2021-06-01 01:51:03 +02:00
parent 41bcf7308d
commit 8efd780a72
2 changed files with 3 additions and 3 deletions

View file

@ -261,7 +261,7 @@ def run_argparse(argv, formatter):
ap2.add_argument("--th-no-jpg", action="store_true", help="disable jpg output")
ap2.add_argument("--th-no-webp", action="store_true", help="disable webp output")
ap2.add_argument("--th-poke", metavar="SEC", type=int, default=300, help="activity labeling cooldown")
ap2.add_argument("--th-clean", metavar="SEC", type=int, default=1800, help="cleanup interval")
ap2.add_argument("--th-clean", metavar="SEC", type=int, default=43200, help="cleanup interval")
ap2.add_argument("--th-maxage", metavar="SEC", type=int, default=604800, help="max folder age")
ap2 = ap.add_argument_group('database options')

View file

@ -316,10 +316,10 @@ class ThumbSrv(object):
time.sleep(interval)
for vol in self.vols:
vol += "/.hist/th"
self.log("cln {}/".format(vol))
self.log("\033[Jcln {}/\033[A".format(vol))
self.clean(vol)
self.log("cln ok")
self.log("\033[Jcln ok")
def clean(self, vol):
# self.log("cln {}".format(vol))