From 2b82c62e6b61eba0de9182b2c6e17637cbaa94fd Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 10 Sep 2015 09:20:42 +0200 Subject: [PATCH] Fix #804 about misleading message with the purge command --- bacula/src/dird/ua_purge.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()); } -- 2.39.5