From: Kartik Thakore Date: Wed, 4 Nov 2009 16:56:38 +0000 (-0500) Subject: 15% of events. My stupid code didn't account of 0array being 1 less the actual count. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=df56c1a212dd761a3e35022d466d14a42dd79f04;p=sdlgit%2FSDL_perl.git 15% of events. My stupid code didn't account of 0array being 1 less the actual count. --- diff --git a/t/core_events.t b/t/core_events.t index 5648691..c4526ee 100644 --- a/t/core_events.t +++ b/t/core_events.t @@ -50,7 +50,7 @@ StopTextInput SetTextInputRect /; -my $why = '[Percentage Completion] '.int( 100 * $#done / ($#done + $#left) ) ."\% implementation. $#done / ".($#done+$#left); +my $why = '[Percentage Completion] '.int( 100 * ($#done +1 ) / ($#done + $#left + 2 ) ) .'% implementation. '.($#done +1 ).'/'.($#done+$#left + 2 ); TODO: {