From: Kern Sibbald Date: Wed, 1 Nov 2017 17:25:03 +0000 (+0100) Subject: Fix bdirjson display of Minutes. Fixes bug #2318 X-Git-Tag: Release-9.0.5~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a0ba7cbad23320266602bdf272802857348bfc4;p=bacula%2Fbacula Fix bdirjson display of Minutes. Fixes bug #2318 --- 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 */