From 6a0ba7cbad23320266602bdf272802857348bfc4 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 1 Nov 2017 18:25:03 +0100 Subject: [PATCH] Fix bdirjson display of Minutes. Fixes bug #2318 --- bacula/src/dird/bdirjson.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bacula/src/dird/bdirjson.c b/bacula/src/dird/bdirjson.c index 948d1e8ea9..f5d4706365 100644 --- a/bacula/src/dird/bdirjson.c +++ b/bacula/src/dird/bdirjson.c @@ -837,15 +837,11 @@ static void display_run(HPKT &hpkt) } } /* End all RunFields (overrides) */ /* Now handle timing */ - if (run->minute) { - if (!first) sendit(NULL, ",\n"); - sendit(NULL, " \"Minute\": %d", run->minute); - first = false; - } if (byte_is_set(run->hour, sizeof(run->hour))) { if (!first) sendit(NULL, ",\n"); sendit(NULL, " \"Hour\":"); display_bit_array(run->hour, 24); + sendit(NULL, ",\n \"Minute\": %d", run->minute); first = false; } /* bit 32 is used to store the keyword LastDay, so we look up to 0-31 */ -- 2.39.5