Commit bd4b7e25 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3958 from NaterGator/unitconvfixes

Fix knots to m/s conversion. Oops.
parents c57ee792 9efd47b8
......@@ -507,7 +507,7 @@ QVariant FactMetaData::_metersPerSecondToKnots(const QVariant& metersPerSecond)
QVariant FactMetaData::_knotsToMetersPerSecond(const QVariant& knots)
{
return QVariant(knots.toDouble() * (constants.knotsToKPH / (1000.0 * constants.secondsPerHour)));
return QVariant(knots.toDouble() * (1000.0 * constants.knotsToKPH / constants.secondsPerHour));
}
QVariant FactMetaData::_percentToNorm(const QVariant& percent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment