Updated HrZones fingerprint to include trimp factors

Also fixed PaceZones fingerprint to consider 2 decimals
Fixes #2002
This commit is contained in:
Alejandro Martinez
2016-06-23 19:13:21 -03:00
parent 6c73ce6692
commit 38a5822b60
2 changed files with 4 additions and 3 deletions

View File

@@ -883,7 +883,7 @@ HrZones::getFingerprint() const
// each zone definition (manual edit/default changed)
for (int j=0; j<ranges[i].zones.count(); j++) {
x += ranges[i].zones[j].lo;
x += int(double(100.0f * ranges[i].zones[j].trimp));
}
}
QByteArray ba = QByteArray::number(x);
@@ -906,6 +906,7 @@ HrZones::getFingerprint(QDate forDate) const
// each zone definition (manual edit/default changed)
for (int j=0; j<ranges[i].zones.count(); j++) {
x += ranges[i].zones[j].lo;
x += int(double(100.0f * ranges[i].zones[j].trimp));
}
}
QByteArray ba = QByteArray::number(x);

View File

@@ -950,11 +950,11 @@ PaceZones::getFingerprint() const
x += ranges[i].end.toJulianDay();
// CV
x += ranges[i].cv;
x += int(double(100.0f * ranges[i].cv));
// each zone definition (manual edit/default changed)
for (int j=0; j<ranges[i].zones.count(); j++) {
x += ranges[i].zones[j].lo;
x += int(double(100.0f * ranges[i].zones[j].lo));
}
}
QByteArray ba = QByteArray::number(x);