Fix an issue of test case testCalculateCalorieCycling.

This commit is contained in:
youtaol
2013-10-16 17:18:20 +08:00
parent 6231cf8663
commit 0b3f5ddca7
2 changed files with 7 additions and 4 deletions
@@ -141,7 +141,7 @@ public class CalorieUtils {
double power = earthGravity * weight * speed * (K1 + grade) + K2 * (speed * speed * speed);
// Get the calories in kcal
return power * timeUsed / UnitConversions.KCAL_TO_J;
return power * timeUsed * UnitConversions.J_TO_KCAL;
}
/**