diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-01-22 18:36:15 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-01-22 18:36:15 (GMT) |
commit | f251814cf0fd10a767972530c119f8f109613c48 (patch) | |
tree | e9bd67bca2531c083ee0754fe6dabe043c8012d1 /plugins/elf/symbols.c | |
parent | c1bcf3e7bd0a256005bd15832117b78cee5fdfab (diff) |
Fixed run sizes of parallel jobs.
Diffstat (limited to 'plugins/elf/symbols.c')
-rw-r--r-- | plugins/elf/symbols.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/elf/symbols.c b/plugins/elf/symbols.c index 08d9377..b6f05f6 100644 --- a/plugins/elf/symbols.c +++ b/plugins/elf/symbols.c @@ -601,9 +601,7 @@ static void add_all_elf_symbols(GElfFormat *format, phys_t sym_start, size_t cou sym_size = ELF_SIZEOF_SYM(format); - runs_count = get_max_online_threads(); - - run_size = count / runs_count; + run_size = compute_run_size(count, &runs_count); gtk_status_stack_extend_activity(status, msg, count); @@ -1017,9 +1015,7 @@ static bool load_elf_relocations(GElfFormat *format, const elf_phdr *dynamic, el queue = get_work_queue(); - runs_count = get_max_online_threads(); - - run_size = length / runs_count; + run_size = compute_run_size(length, &runs_count); loadings = (GElfLoading **)malloc(runs_count * sizeof(GElfLoading *)); |