]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #8126 About strange ouput for the .status client command
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Mon, 6 Sep 2021 10:03:33 +0000 (12:03 +0200)
committerEric Bollengier <eric@baculasystems.com>
Mon, 6 Sep 2021 12:27:08 +0000 (14:27 +0200)
bacula/src/lib/status.h

index f82d5c38e8b56df4ba4be8ff5f7d768580123046..6bb3d5446d000365769bf8d9e685f3806064f488 100644 (file)
@@ -176,8 +176,6 @@ static void list_terminated_jobs(STATUS_PKT *sp)
                            OT_END_OBJ,
                            OT_END);
          sendit(p, strlen(p), sp);
-
-
       } else {
          bsnprintf(buf, sizeof(buf), _("%6d  %-6s %8s %10s  %-7s  %-8s %s\n"),
             je->JobId,
@@ -186,8 +184,8 @@ static void list_terminated_jobs(STATUS_PKT *sp)
             edit_uint64_with_suffix(je->JobBytes, b2),
             termstat,
             dt, JobName);
+         sendit(buf, strlen(buf), sp);
       }
-      sendit(buf, strlen(buf), sp);
    }
    unlock_last_jobs_list();
    if (!sp->api) {