]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bdirjson display of Minutes. Fixes bug #2318
authorKern Sibbald <kern@sibbald.com>
Wed, 1 Nov 2017 17:25:03 +0000 (18:25 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 1 Nov 2017 18:03:59 +0000 (19:03 +0100)
bacula/src/dird/bdirjson.c

index 948d1e8ea9f527b853dc09850baca6e12a4bce5f..f5d4706365fea6640bf492dc6d801552302618b7 100644 (file)
@@ -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 */