bug fix: integer division error

I introduced this bug in commit 23b2ff4.
This commit is contained in:
Sean Rhea
2010-01-02 17:05:18 -05:00
parent 86df4288da
commit 0edc94d00a

View File

@@ -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();