mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
bug fix: integer division error
I introduced this bug in commit 23b2ff4.
This commit is contained in:
@@ -208,8 +208,8 @@ ManualRideDialog::estBSFromTime()
|
||||
// calculate time-based BS estimate
|
||||
if (timeBS) {
|
||||
double hrs = hrsentry->text().toInt()
|
||||
+ minsentry->text().toInt() / 60
|
||||
+ secsentry->text().toInt() / 3600;
|
||||
+ minsentry->text().toInt() / 60.0
|
||||
+ secsentry->text().toInt() / 3600.0;
|
||||
BSentry->clear();
|
||||
BSentry->insert(QString("%1").arg((int)(hrs * timeBS)));
|
||||
DPentry->clear();
|
||||
|
||||
Reference in New Issue
Block a user