Make initial quotas high - one every ten seconds

master
Bob Mottram 2019-07-15 11:27:53 +01:00
parent 1b3e381bfc
commit 4a1b57a661
2 changed files with 3 additions and 3 deletions

View File

@ -664,7 +664,7 @@ def runDaemon(clientToServer: bool,baseDir: str,domain: str, \
fedList=[],noreply=False,nolike=False,nopics=False, \
noannounce=False,cw=False,ocapAlways=False, \
useTor=False,maxReplies=64, \
domainMaxPostsPerDay=1000,accountMaxPostsPerDay=1000, \
domainMaxPostsPerDay=8640,accountMaxPostsPerDay=8640, \
debug=False) -> None:
if len(domain)==0:
domain='localhost'

View File

@ -197,9 +197,9 @@ parser.add_argument('--filter', dest='filterStr', type=str,default=None, \
help='Adds a word or phrase which if present will cause a message to be ignored')
parser.add_argument('--unfilter', dest='unfilterStr', type=str,default=None, \
help='Remove a filter on a particular word or phrase')
parser.add_argument('--domainmax', dest='domainMaxPostsPerDay', type=int,default=1000, \
parser.add_argument('--domainmax', dest='domainMaxPostsPerDay', type=int,default=8640, \
help='Maximum number of received posts from a domain per day')
parser.add_argument('--accountmax', dest='accountMaxPostsPerDay', type=int,default=1000, \
parser.add_argument('--accountmax', dest='accountMaxPostsPerDay', type=int,default=8640, \
help='Maximum number of received posts from an account per day')
args = parser.parse_args()