From: Eric Bollengier Date: Thu, 10 Sep 2015 07:20:42 +0000 (+0200) Subject: Fix #804 about misleading message with the purge command X-Git-Tag: Release-7.4.0~110 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b82c62e6b61eba0de9182b2c6e17637cbaa94fd;p=bacula%2Fbacula Fix #804 about misleading message with the purge command --- diff --git a/bacula/src/dird/ua_purge.c b/bacula/src/dird/ua_purge.c index 551d80e02f..31b4b7e4b4 100644 --- a/bacula/src/dird/ua_purge.c +++ b/bacula/src/dird/ua_purge.c @@ -209,11 +209,11 @@ static int purge_files_from_client(UAContext *ua, CLIENT *client) purge_files_from_job_list(ua, del); - if (del.num_ids == 0) { + if (del.num_del == 0) { ua->warning_msg(_("No Files found for client %s to purge from %s catalog.\n"), client->name(), client->catalog->name()); } else { - ua->info_msg(_("Files for %d Jobs for client \"%s\" purged from %s catalog.\n"), del.num_ids, + ua->info_msg(_("Files for %d Jobs for client \"%s\" purged from %s catalog.\n"), del.num_del, client->name(), client->catalog->name()); } @@ -259,11 +259,11 @@ static int purge_jobs_from_client(UAContext *ua, CLIENT *client) purge_job_list_from_catalog(ua, del); - if (del.num_ids == 0) { + if (del.num_del == 0) { ua->warning_msg(_("No Files found for client %s to purge from %s catalog.\n"), client->name(), client->catalog->name()); } else { - ua->info_msg(_("%d Jobs for client %s purged from %s catalog.\n"), del.num_ids, + ua->info_msg(_("%d Jobs for client %s purged from %s catalog.\n"), del.num_del, client->name(), client->catalog->name()); }