]> git.sur5r.net Git - bacula/bacula/commitdiff
Retweak previous stats slots patch
authorKern Sibbald <kern@sibbald.com>
Sun, 23 Jul 2017 08:24:53 +0000 (10:24 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 23 Jul 2017 08:24:53 +0000 (10:24 +0200)
bacula/src/dird/ua_label.c

index 7e42e61e52b7d8d4cc703e1db59dc364eef7365e..9715968f5e29756104ede205673e14bae7556e77 100644 (file)
@@ -1175,7 +1175,7 @@ void status_slots(UAContext *ua, STORE *store_r)
    int max_slots;
    int i=1;
    /* Slot | Volume | Status | MediaType | Pool */
-   const char *slot_hformat="| %4i%c| %-30s | %-9s | %-10s | %-18s |\n";
+   const char *slot_hformat="| %4i%c| %-20s | %-9s | %-15s | %-18s |\n";
 
    if (ua->api) {
       status_content(ua, store_r);
@@ -1209,9 +1209,9 @@ void status_slots(UAContext *ua, STORE *store_r)
       ua->warning_msg(_("No Volumes found, or no barcodes.\n"));
       goto bail_out;
    }
-   ua->send_msg(_("+------+--------------------------------+-----------+------------+--------------------+\n"));
-   ua->send_msg(_("| Slot | Volume Name                    | Status    | Media Type | Pool               |\n"));
-   ua->send_msg(_("+------+--------------------------------+-----------+------------+--------------------+\n"));
+   ua->send_msg(_("+------+----------------------+-----------+-----------------+--------------------+\n"));
+   ua->send_msg(_("| Slot | Volume Name          | Status    |      Media Type | Pool               |\n"));
+   ua->send_msg(_("+------+----------------------+-----------+-----------------+--------------------+\n"));
 
    /* Walk through the list getting the media records */
    for (vl=vol_list; vl; vl=vl->next) {
@@ -1244,7 +1244,7 @@ void status_slots(UAContext *ua, STORE *store_r)
             slot_list[i]=0;
          }
       }
-      ua->send_msg(_("+------+--------------------------------+-----------+------------+--------------------+\n"));
+   ua->send_msg(_("+------+----------------------+-----------+-----------------+--------------------+\n"));
 
       memset(&mr, 0, sizeof(MEDIA_DBR));
       bstrncpy(mr.VolumeName, vl->VolName, sizeof(mr.VolumeName));