From: Peter O. <obe...@us...> - 2008-08-18 07:12:37
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1615 Modified Files: genhtml Log Message: lcov: change sorting order to low-to-high coverage Index: genhtml =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/genhtml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** genhtml 15 Aug 2008 08:38:21 -0000 1.17 --- genhtml 18 Aug 2008 07:12:33 -0000 1.18 *************** *** 3821,3828 **** } elsif ($type == 1) { # Sort by line coverage ! return sort({$hash->{$b}[5] <=> $hash->{$a}[5]} keys(%{$hash})); } elsif ($type == 2) { # Sort by function coverage; ! return sort({$hash->{$b}[6] <=> $hash->{$a}[6]} keys(%{$hash})); } } --- 3821,3828 ---- } elsif ($type == 1) { # Sort by line coverage ! return sort({$hash->{$a}[5] <=> $hash->{$b}[5]} keys(%{$hash})); } elsif ($type == 2) { # Sort by function coverage; ! return sort({$hash->{$a}[6] <=> $hash->{$b}[6]} keys(%{$hash})); } } |