diff options
Diffstat (limited to 'plugins/elf')
-rw-r--r-- | plugins/elf/strings.c | 4 | ||||
-rw-r--r-- | plugins/elf/symbols.c | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/plugins/elf/strings.c b/plugins/elf/strings.c index 7dd644e..f6be4a8 100644 --- a/plugins/elf/strings.c +++ b/plugins/elf/strings.c @@ -206,9 +206,7 @@ static bool parse_elf_string_data(GElfFormat *format, phys_t start, phys_t size, { final = start + size; - runs_count = get_max_online_threads(); - - run_size = size / runs_count; + run_size = compute_run_size(size, &runs_count); gtk_status_stack_extend_activity(status, msg, size); 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 *)); |