Skip to content

Commit

Permalink
Merge pull request #324 from jmlich/weather-to-double
Browse files Browse the repository at this point in the history
do not clip temperature to int
  • Loading branch information
piggz authored Jan 14, 2024
2 parents 298789c + 50351c0 commit 1446930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/weather/currentweather.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ void CurrentWeather::handleForecast(const QByteArray &reply)
QString desc = weather.value("description").toVariant().toString();

QJsonObject main = obj.value("main").toObject();
int min_temp = main.value("temp_min").toDouble();
int max_temp = main.value("temp_max").toDouble();
qreal min_temp = main.value("temp_min").toDouble();
qreal max_temp = main.value("temp_max").toDouble();
int wind_speed = 0;
f.setWindMaxSpeed(0);
f.setWindMinSpeed(255);
Expand Down

0 comments on commit 1446930

Please sign in to comment.