]> 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>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/src/lib/status.h

index ca2fe2f8fb95e19345e6dd2739d826401184b4b4..b70870cfd1be3983b6841152d471469c8a8df31c 100644 (file)
@@ -161,8 +161,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,
@@ -171,8 +169,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) {