Exclude files larger than 20MB from garbage collection

This commit is contained in:
shortcutme 2018-10-15 13:06:50 +02:00
parent 8bb4d149b6
commit b33551e62e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 12 additions and 7 deletions

View file

@ -167,5 +167,6 @@ class ConfigPlugin(object):
group = self.parser.add_argument_group("OptionalManager plugin")
group.add_argument('--optional_limit', help='Limit total size of optional files', default="10%", metavar="GB or free space %")
group.add_argument('--pin_bigfile', help='Automatically pin files larger than this limit', default=20, metavar="MB", type=int)
group.add_argument('--optional_limit_exclude_minsize', help='Exclude files larger than this limit from optional size limit calculation', default=20, metavar="MB", type=int)
return super(ConfigPlugin, self).createArguments()