mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-14 22:13:02 +00:00
Add hourly decay limit
This commit is contained in:
parent
a4a67b2b79
commit
6d6202de83
4 changed files with 44 additions and 11 deletions
|
@ -42,6 +42,13 @@ def get_args():
|
|||
metavar="<number>",
|
||||
help="Set the default maximum number of requests per hour per client, in addition to req-limit. (%(default)s)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--hourly-req-limit-decay",
|
||||
default=DEFARGS['HOURLY_REQ_LIMIT_DECAY'],
|
||||
type=int,
|
||||
metavar="<number>",
|
||||
help="When used in combination with hourly-req-limit, adds additional hourly restrictions that logaritmically decrease for each additional hour. (%(default)s)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--daily-req-limit",
|
||||
default=DEFARGS['DAILY_REQ_LIMIT'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue