]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #9933 About incorrect message of the setbandwidth command
authorEric Bollengier <eric@baculasystems.com>
Mon, 6 Mar 2023 21:09:12 +0000 (22:09 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/dird/ua_cmds.c

index 78ad931f7ddfd1cb6d37b95323f3ee98ef413824..b72849be6b8e774667c325c7fc186e708a837fc7 100644 (file)
@@ -776,7 +776,8 @@ static int setbwlimit_client(UAContext *ua, CLIENT *client, char *Job, int64_t l
       } else {
           Mmsg(buf, _("Bandwidth set to unlimited"));
       }
-      ua->info_msg(_("2000 %s %s\n"), buf.c_str(), _("on running and future jobs"));
+      ua->info_msg(_("2000 %s %s\n"), buf.c_str(),
+                   *Job ? _("on running Job") : _("on running and future jobs"));
    }
 
    ua->jcr->file_bsock->signal(BNET_TERMINATE);