fixed bug in percent error calc

This commit is contained in:
Jeff Hill
2001-02-15 22:21:18 +00:00
parent 36f57b79db
commit 94e8d24f5a

View File

@@ -81,7 +81,7 @@ void delayVerify::checkError () const
{
double actualDelay = this->expireStamp - this->beginStamp;
double measuredError = actualDelay - this->expectedDelay;
double percentError = measuredError /= this->expectedDelay;
double percentError = measuredError / this->expectedDelay;
percentError *= 100.0;
if ( percentError > 1.0 ) {
printf ( "TEST FAILED timer delay = %f sec, error = %f sec (%f %%)\n",