Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2980 from tagawa/tagawa/forecast
Browse files Browse the repository at this point in the history
Forecast: Rounded humidity value
  • Loading branch information
tagawa authored Aug 24, 2016
2 parents 000383a + 7ff92d1 commit b85e04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/spice/forecast/forecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
currentObj.icon = getIcon(getIconType(f.currently.icon));

if(f.currently.humidity) {
currentObj.humidity = 'Humidity: ' + (f.currently.humidity * 100) + '%';
currentObj.humidity = 'Humidity: ' + Math.round(f.currently.humidity * 100) + '%';
}

if(f.currently.precipProbability) {
Expand Down

0 comments on commit b85e04f

Please sign in to comment.