The branch master has been updated
       via  dd672a5f06f5ca4e516170902f1876b249445351 (commit)
      from  78f6c4c25ac5a0264903aefa00dfd5ab71da9fff (commit)


- Log -----------------------------------------------------------------
commit dd672a5f06f5ca4e516170902f1876b249445351
Author: Rich Salz <rs...@openssl.org>
Date:   Tue Mar 6 14:34:26 2018 -0500

    Formatting

-----------------------------------------------------------------------

Summary of changes:
 license/get-summary | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/license/get-summary b/license/get-summary
index b1b51df..b88627f 100755
--- a/license/get-summary
+++ b/license/get-summary
@@ -10,7 +10,12 @@ my $total = 0;
 my $tot_adds = 0;
 my $tot_files = 0;
 my $tot_dels = 0;
+my $authors = 0;
 while ( <$FH> ) {
+    if ( /https:/ ) {
+       $authors++;
+       next;
+    }
     next unless /([0-da-f]{8}) .*/;
     my $cid = $1;
     # Skip a big import
@@ -35,9 +40,10 @@ while ( <$FH> ) {
     $tot_dels += $dels;
     close $F || die "Can't close git diff, $!\n";
 }
-print "Commits      : $total\n";
-print "Files        : $tot_files avg ", $tot_files / $total, "\n";
-print "Added lines  : $tot_adds avg ", $tot_adds / $total, "\n";
-print "Deleted lines: $tot_dels avg ", $tot_dels / $total, "\n";
+printf "Authors      : %4d\n", $authors;
+printf "Commits      : %4d\n", $total;
+printf "Files        : %4d (%.2f average)\n", $tot_files, $tot_files / $total;
+printf "Added lines  : %4d (%.2f average)\n", $tot_adds, $tot_adds / $total;
+printf "Deleted lines: %4d (%.2f average)\n", $tot_dels, $tot_dels / $total;
 
 close $FH || die "Can't close, $!,";
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to