Skip to content

Commit

Permalink
Fix - refresh rate update
Browse files Browse the repository at this point in the history
  • Loading branch information
inspired-technologies committed May 29, 2024
1 parent b34ada7 commit b4673f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openweather.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function preLoad(apikey, config, param) {

function lastUpdateWithin(interval) {
return latest && latest.hasOwnProperty('update') &&
latest.update!==null ? (Date.now() - latest.update) <= interval : false;
latest.update!==null ? (Date.now() - latest.update + 5*oneMinute) < interval : false;
}

function isValidPosition(lat, lon) {
Expand Down

0 comments on commit b4673f8

Please sign in to comment.