mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-07-18 00:45:53 +00:00
Merge pull request #13 from alexh-name/master
actually assign weight from config to hosts != localhost
This commit is contained in:
commit
cfb5907a2e
1 changed files with 2 additions and 0 deletions
|
|
@ -136,6 +136,8 @@ def get_target_host():
|
|||
|
||||
if type(host) is str or host.get("weight", None) is None:
|
||||
host_weight = 1
|
||||
else:
|
||||
host_weight = int(host.get("weight"))
|
||||
|
||||
remote_hosts.append({ "name": host_name, "weight": host_weight, "count": 0, "weighted_count": 0, "bad": False })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue