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 /src/glibext | |
parent | c1bcf3e7bd0a256005bd15832117b78cee5fdfab (diff) |
Fixed run sizes of parallel jobs.
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/gwidthtracker.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glibext/gwidthtracker.c b/src/glibext/gwidthtracker.c index e116a85..50b99eb 100644 --- a/src/glibext/gwidthtracker.c +++ b/src/glibext/gwidthtracker.c @@ -1000,12 +1000,10 @@ void g_width_tracker_build_initial_cache(GWidthTracker *tracker, wgroup_id_t gid /* Lancement des traitements */ - runs_count = get_max_online_threads(); + run_size = compute_run_size(tracker->count, &runs_count); updates = (GWidthUpdate **)calloc(runs_count, sizeof(GWidthUpdate *)); - run_size = tracker->count / runs_count; - queue = get_work_queue(); id = gtk_status_stack_add_activity(status, _("Computing width of all lines for rendering"), tracker->count); |