From: <jgr...@us...> - 2003-04-15 21:22:06
|
Update of /cvsroot/popfile/engine/UI In directory sc8-pr-cvs1:/tmp/cvs-serv5899/UI Modified Files: HTML.pm Log Message: Prevent negative values in the Accuracy Index: HTML.pm =================================================================== RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** HTML.pm 15 Apr 2003 21:20:18 -0000 1.130 --- HTML.pm 15 Apr 2003 21:22:02 -0000 1.131 *************** *** 1672,1676 **** my $accuracy = $self->{language__}{Bucket_NotEnoughData}; my $percent = 0; ! if ( $self->global_config_( 'mcount' ) > 0 ) { $percent = int( 10000 * ( $self->global_config_( 'mcount' ) - $self->global_config_( 'ecount' ) ) / $self->global_config_( 'mcount' ) ) / 100; $accuracy = "$percent%"; --- 1672,1676 ---- my $accuracy = $self->{language__}{Bucket_NotEnoughData}; my $percent = 0; ! if ( $self->global_config_( 'mcount' ) > $self->global_config_( 'ecount' ) ) { $percent = int( 10000 * ( $self->global_config_( 'mcount' ) - $self->global_config_( 'ecount' ) ) / $self->global_config_( 'mcount' ) ) / 100; $accuracy = "$percent%"; |