mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Xert cloud download - spd and alt fields can have decimal part
Interpreting them as integers produces lot of zeros in those cases. Fixes #3526
This commit is contained in:
@@ -438,10 +438,10 @@ Xert::readFileCompleted()
|
||||
add.hr = data["hr"].toInt();
|
||||
|
||||
if (!data["alt"].isNull())
|
||||
add.alt = data["alt"].toInt();
|
||||
add.alt = data["alt"].toDouble();
|
||||
|
||||
if (!data["spd"].isNull())
|
||||
add.kph = data["spd"].toInt() / 1000.0;
|
||||
add.kph = data["spd"].toDouble() / 1000.0;
|
||||
|
||||
if (!data["dist"].isNull())
|
||||
add.km = data["dist"].toDouble() / 1000.0;
|
||||
|
||||
Reference in New Issue
Block a user