diff --git a/assets/proj.js b/assets/proj.js index 26b1f7f..38f2912 100644 --- a/assets/proj.js +++ b/assets/proj.js @@ -74,7 +74,7 @@ } var t = data.get('t-' + name) - if (!t || +new Date() - t > 86400000) { + if (!t || +new Date() - t > 3600 * 1000) { console.log('stale ' + String(t)) data.set('t-' + name, +new Date()) GITR.repo('samsonjs/' + name) diff --git a/proj/index.html b/proj/index.html index e4d6fad..24f5b21 100644 --- a/proj/index.html +++ b/proj/index.html @@ -69,7 +69,7 @@ var data = createObjectStore('proj') , t = data.get('t-proj') , names = ['followers', 'following', 'repos', 'watched'] - if (!t || +new Date() - t > 86400000) { + if (!t || +new Date() - t > 3600 * 1000) { console.log('stale ' + String(t)) data.set('t-proj', +new Date()) names.forEach(function(name) { diff --git a/templates/proj/index.html b/templates/proj/index.html index 269b9a0..ac3f09f 100644 --- a/templates/proj/index.html +++ b/templates/proj/index.html @@ -75,7 +75,7 @@ var data = createObjectStore('proj') , t = data.get('t-proj') , names = ['followers', 'following', 'repos', 'watched'] - if (!t || +new Date() - t > 86400000) { + if (!t || +new Date() - t > 3600 * 1000) { console.log('stale ' + String(t)) data.set('t-proj', +new Date()) names.forEach(function(name) {