debug of distance should be float and not integer

This commit is contained in:
Stephen Birarda 2013-04-26 12:01:47 -07:00
parent e2cb1866ed
commit 7744685de4

View file

@ -146,7 +146,7 @@ void *sendBuffer(void *args)
float minCoefficient = std::min(1.0f,
powf(0.5, (logf(DISTANCE_RATIO * distanceToAgent) / logf(3)) - 1));
printf("The distance between the two agents is %d\n", distanceToAgent);
printf("The distance between the two agents is %f\n", distanceToAgent);
printf("The DC between agent %d and %d is %f\n", agent->getAgentId(), otherAgent->getAgentId(), minCoefficient);
distanceCoeffs[lowAgentIndex][highAgentIndex] = minCoefficient;
}