Skip to content

Commit

Permalink
Merge pull request #47 from mariux64/fix-counter-orphaned
Browse files Browse the repository at this point in the history
mxqd_control: account for orphaned groups
  • Loading branch information
mariux authored Sep 5, 2016
2 parents 7fe79ac + 4d90259 commit dd4296c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mxqd_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,11 @@ int server_remove_orphaned_groups(struct mxq_server *server)
group->group_id);

ulist->group_cnt--;
ulist->global_slots_running -= glist->global_slots_running;
ulist->global_threads_running -= glist->global_threads_running;
server->group_cnt--;
server->global_slots_running -= glist->global_slots_running;
server->global_threads_running -= glist->global_threads_running;
cnt++;
mxq_group_free_content(group);
mx_free_null(glist);
Expand Down

0 comments on commit dd4296c

Please sign in to comment.