Skip to content

Commit

Permalink
mxqd: Sort groups by priority
Browse files Browse the repository at this point in the history
When active groups are (re-)loaded from the database, we sort them by
group priority. This implements group priority (mxqsub -P).
  • Loading branch information
donald committed Jul 4, 2017
1 parent e10e3d0 commit d99d562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,7 @@ int load_running_groups(struct mxq_server *server)
free(grps);

server_remove_orphaned_groups(server);
server_sort_groups_by_priority(server);

return total;
}
Expand Down

0 comments on commit d99d562

Please sign in to comment.