diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-02-19 20:35:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 20:35:04 -0500 |
commit | 5351028d7e00acb885bf81aab46b03d2be6f34d8 (patch) | |
tree | bbc6de5cabae2f3101eb817d3cf46fc302daea4a | |
parent | b4c555961373792cf028aba395436296fdf87a62 (diff) | |
parent | 003d6b95d9c4562b76c14054f436f1bfc69d654d (diff) |
Merge pull request #394 from GriffinRichards/calcrom100
Celebratory change to calcrom.pl
-rwxr-xr-x | .travis/calcrom/calcrom.pl | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/.travis/calcrom/calcrom.pl b/.travis/calcrom/calcrom.pl index f7966d6ea..fb0a9df8c 100755 --- a/.travis/calcrom/calcrom.pl +++ b/.travis/calcrom/calcrom.pl @@ -145,9 +145,16 @@ my $docPct = sprintf("%.4f", 100 * $documented / $total_syms); my $partialPct = sprintf("%.4f", 100 * $partial_documented / $total_syms); my $undocPct = sprintf("%.4f", 100 * $undocumented / $total_syms); -print "$total total bytes of code\n"; -print "$src bytes of code in src ($srcPct%)\n"; -print "$asm bytes of code in asm ($asmPct%)\n"; +if ($asm == 0) +{ + print "Code decompilation is 100% complete\n" +} +else +{ + print "$total total bytes of code\n"; + print "$src bytes of code in src ($srcPct%)\n"; + print "$asm bytes of code in asm ($asmPct%)\n"; +} print "\n"; if ($verbose != 0) @@ -160,12 +167,19 @@ if ($verbose != 0) print "\n"; } -print "$total_syms total symbols\n"; -print "$documented symbols documented ($docPct%)\n"; -print "$partial_documented symbols partially documented ($partialPct%)\n"; -print "$undocumented symbols undocumented ($undocPct%)\n"; - +if ($partial_documented == 0 && $undocumented == 0) +{ + print "Documentation is 100% complete\n" +} +else +{ + print "$total_syms total symbols\n"; + print "$documented symbols documented ($docPct%)\n"; + print "$partial_documented symbols partially documented ($partialPct%)\n"; + print "$undocumented symbols undocumented ($undocPct%)\n"; +} print "\n"; + my $dataTotal = $srcdata + $data; my $srcDataPct = sprintf("%.4f", 100 * $srcdata / $dataTotal); my $dataPct = sprintf("%.4f", 100 * $data / $dataTotal); |