Skip to content

Commit

Permalink
Fix for naming difference between branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 3b59e1b commit b552f51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/dird/job.c
Expand Up @@ -476,10 +476,10 @@ static void *job_thread(void *arg)
/*
* Check for subscriptions and issue a warning when exceeded.
*/
if (me->subscriptions &&
me->subscriptions < me->subscriptions_used) {
if (director->subscriptions &&
director->subscriptions < director->subscriptions_used) {
Jmsg(jcr, M_WARNING, 0, _("Subscriptions exceeded: (used/total) (%d/%d)\n"),
me->subscriptions_used, me->subscriptions);
director->subscriptions_used, director->subscriptions);
}

run_scripts(jcr, jcr->res.job->RunScripts, "AfterJob");
Expand Down
10 changes: 5 additions & 5 deletions src/dird/ua_status.c
Expand Up @@ -546,23 +546,23 @@ static bool do_subscription_status(UAContext *ua)
/*
* See if we need to check.
*/
if (me->subscriptions == 0) {
if (director->subscriptions == 0) {
ua->send_msg(_("No subscriptions configured in director.\n"));
retval = true;
goto bail_out;
}

if (me->subscriptions_used <= 0) {
if (director->subscriptions_used <= 0) {
ua->error_msg(_("No clients defined.\n"));
goto bail_out;
} else {
available = me->subscriptions - me->subscriptions_used;
available = director->subscriptions - director->subscriptions_used;
if (available < 0) {
ua->send_msg(_("Warning! No available subscriptions: %d (%d/%d) (used/total)\n"),
available, me->subscriptions_used, me->subscriptions);
available, director->subscriptions_used, director->subscriptions);
} else {
ua->send_msg(_("Ok: available subscriptions: %d (%d/%d) (used/total)\n"),
available, me->subscriptions_used, me->subscriptions);
available, director->subscriptions_used, director->subscriptions);
retval = true;
}
}
Expand Down

0 comments on commit b552f51

Please sign in to comment.