Skip to content
Permalink
Browse files

Merge pull request #3098 from jgpallero/patch-1

Update LeftRightBalance.cpp fixes #2955
  • Loading branch information...
amtriathlon committed May 15, 2019
2 parents 3f4b7a6 + 439a7f6 commit f7e318e9593e9ab9dfb0a993129c7bee1153bca9
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Metrics/LeftRightBalance.cpp
@@ -60,11 +60,10 @@ class LeftRightBalance : public RideMetric {
RideFileIterator it(item->ride(), spec);
while (it.hasNext()) {
struct RideFilePoint *point = it.next();
if ((point->cad || point->rcad) && point->lrbalance > 0.0f) {
if ((point->watts > 0.0f && point->cad) || (point->rcontact && point->rcad) && point->lrbalance > 0.0f && point->lrbalance < 100.0f) {
total += point->lrbalance;
++count;
}

}
setValue(count > 0 ? total / count : 0);
setCount(count);

0 comments on commit f7e318e

Please sign in to comment.
You can’t perform that action at this time.