From: David E. Wheeler Date: Fri, 26 Oct 2012 22:18:52 +0000 (-0700) Subject: Use ucfirst for all display items but name. X-Git-Tag: 4.99.6~93 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ffd4fcedb6892dcff76a7404f29acd88ebe37df9;p=bucardo.git Use ucfirst for all display items but name. --- diff --git a/bucardo b/bucardo index c6c56df25..4b012a94c 100755 --- a/bucardo +++ b/bucardo @@ -5208,12 +5208,12 @@ sub status_detail { ## Undefined should be written as 'none' for (qw/checktime/) { - $s->{$_} ||= 'none'; + $s->{$_} ||= 'None'; } ## Should be 'yes' or 'no' for (qw/analyze_after_copy vacuum_after_copy stayalive kidsalive autokick/) { - $s->{$_} = (defined $s->{$_} and $s->{$_}) ? 'yes' : 'no '; + $s->{$_} = (defined $s->{$_} and $s->{$_}) ? 'Yes' : 'No'; } ## If currently running, there should be a PID file @@ -5227,20 +5227,20 @@ sub status_detail { push @items => ['Current state' => $s->{state}]; push @items => ['Source herd/database' => "$s->{herd}{name} / $sourcedb"]; push @items => ['Tables in sync' => $numtables]; - push @items => ['Status' => $s->{status}]; + push @items => ['Status' => ucfirst $s->{status}]; push @items => ['Check time' => $s->{checktime}]; push @items => ['Overdue time' => $s->{overdue}]; push @items => ['Expired time' => $s->{expired}]; - push @items => ['Stayalive/Kidsalive' => "\u$s->{stayalive} / \u$s->{kidsalive}"]; + push @items => ['Stayalive/Kidsalive' => "$s->{stayalive} / $s->{kidsalive}"]; push @items => ['Rebuild index' => $s->{rebuild_index} ? 'Yes' : 'No']; push @items => ['Autokick' => $s->{autokick}]; push @items => ['Onetimecopy' => $s->{onetimecopy} ? 'Yes' : 'No']; ## Only show these if enabled - if ($s->{analyze_after_copy} eq 'yes') { + if ($s->{analyze_after_copy} eq 'Yes') { push @items => ['Post-copy analyze', 'Yes']; } - if ($s->{vacuum_after_copy} eq 'yes') { + if ($s->{vacuum_after_copy} eq 'Yes') { push @items => ['Post-copy vacuum', 'Yes']; }