Skip to content

Commit

Permalink
Update LeftRightBalance.cpp (#3189)
Browse files Browse the repository at this point in the history
Add parenthesis in order to evaluate correctly the L/R balance computation
  • Loading branch information
jgpallero authored and amtriathlon committed Oct 28, 2019
1 parent 43ed80d commit 5a93a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metrics/LeftRightBalance.cpp
Expand Up @@ -60,7 +60,7 @@ class LeftRightBalance : public RideMetric {
RideFileIterator it(item->ride(), spec);
while (it.hasNext()) {
struct RideFilePoint *point = it.next();
if ((point->watts > 0.0f && point->cad) || (point->rcontact && point->rcad) && point->lrbalance > 0.0f && point->lrbalance < 100.0f) {
if (((point->watts > 0.0f && point->cad) || (point->rcontact && point->rcad)) && point->lrbalance > 0.0f && point->lrbalance < 100.0f) {
total += point->lrbalance;
++count;
}
Expand Down

0 comments on commit 5a93a2c

Please sign in to comment.