Show if a sync is fullcopy or not
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 24 Feb 2012 17:45:29 +0000 (12:45 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 24 Feb 2012 17:45:29 +0000 (12:45 -0500)
bucardo

diff --git a/bucardo b/bucardo
index 6389d6a088745a6c1c0792cb334252288a4bf84d..ce9fe2b0a9828d4e5b1d00db719ee1ac22c425b9 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -4276,7 +4276,6 @@ sub list_syncs {
     }
 
     ## Now print them out in alphabetic order
-    ## TODO: Have a CSV like output
     for my $name (sort keys %$syncs) {
         my $s = $syncs->{$name};
 
@@ -4284,11 +4283,12 @@ sub list_syncs {
         my $maxdbline = 50;
 
         ## Show basic information
-        printf "Sync: %-*s  Herd: %-*s %s[%s]\n",
+        printf "Sync: %-*s  Herd: %-*s %s[%s]%s\n",
             $maxname, $name,
             $maxherd, $s->{herd}{name},
             $maxdbs > $maxdbline ? '' : "$s->{d}  ",
-            ucfirst $s->{status};
+            ucfirst $s->{status},
+            $s->{synctype} eq 'fullcopy' ? ' (fullcopy)' : '';
 
         ## Print the second line if needed
         if ($maxdbs > $maxdbline) {