mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 02:24:03 +00:00
parent
e6990076d9
commit
ca12fdae01
1 changed files with 2 additions and 0 deletions
2
rffmpeg
2
rffmpeg
|
|
@ -268,6 +268,7 @@ def get_target_host(config):
|
|||
lowest_count = 9999
|
||||
target_hid = None
|
||||
target_hostname = None
|
||||
target_servername = None
|
||||
# For each host in the mapping, let's determine if it is suitable
|
||||
for hid, host in host_mappings.items():
|
||||
log.debug("Trying host ID {} '{}'".format(hid, host["hostname"]))
|
||||
|
|
@ -326,6 +327,7 @@ def get_target_host(config):
|
|||
lowest_count = weighted_proc_count
|
||||
target_hid = hid
|
||||
target_hostname = host["hostname"]
|
||||
target_servername = host["servername"]
|
||||
log.debug("Selecting host as current lowest proc count (raw count: {}, weighted count: {})".format(raw_proc_count, weighted_proc_count))
|
||||
|
||||
log.debug("Found optimal host ID {} '{}' ({})".format(target_hid, target_hostname, target_servername))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue