Skip to content

Commit

Permalink
Merge pull request #92 from mariux64/fix-91
Browse files Browse the repository at this point in the history
Fix #91 "jobs started after server was blacklisted"
  • Loading branch information
donald authored Aug 13, 2020
2 parents 5afd6c9 + ef4fcef commit 329c893
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MXQ_VERSION_MAJOR = 0
MXQ_VERSION_MINOR = 26
MXQ_VERSION_PATCH = 5
MXQ_VERSION_PATCH = 6
MXQ_VERSION_EXTRA = "beta"
MXQ_VERSIONDATE = 2016

Expand Down
4 changes: 2 additions & 2 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1428,10 +1428,10 @@ unsigned long start_user(struct mxq_user_list *ulist, long slots_to_start)

group = &glist->group;

if (glist->jobs_running == group->group_jobs) {
if (glist->jobs_running >= group->group_jobs) {
continue;
}
if (glist->jobs_running == glist->jobs_max) {
if (glist->jobs_running >= glist->jobs_max) {
continue;
}
if (mxq_group_jobs_inq(group) == 0) {
Expand Down
3 changes: 0 additions & 3 deletions mxqd.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ struct mxq_group_list {
unsigned long global_threads_running;
unsigned long global_slots_running;

int server_is_qualified_evaluated;
int server_is_qualified;

short orphaned;
};

Expand Down
3 changes: 0 additions & 3 deletions mxqd_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ static void _group_list_init(struct mxq_group_list *glist)
glist->slots_max = slots_max;
glist->memory_max = memory_max;

glist->server_is_qualified_evaluated = 0;
glist->server_is_qualified = 0;

glist->orphaned = 0;
}

Expand Down

0 comments on commit 329c893

Please sign in to comment.