From 9df3bbae53b54cb2604cce98d1d9934439227442 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 30 Mar 2016 19:47:40 +0900 Subject: [PATCH] Only update human time objects every ten seconds --- framework/core/js/admin/dist/app.js | 2 +- framework/core/js/forum/dist/app.js | 2 +- framework/core/js/lib/initializers/humanTime.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/core/js/admin/dist/app.js b/framework/core/js/admin/dist/app.js index 3393bce2a..1c011c207 100644 --- a/framework/core/js/admin/dist/app.js +++ b/framework/core/js/admin/dist/app.js @@ -20885,7 +20885,7 @@ System.register('flarum/initializers/humanTime', ['flarum/utils/humanTime'], fun * timestamps rendered with the `humanTime` helper. */ function humanTime() { - setInterval(updateHumanTimes, 1000); + setInterval(updateHumanTimes, 10000); } _export('default', humanTime); diff --git a/framework/core/js/forum/dist/app.js b/framework/core/js/forum/dist/app.js index 8d880f2f8..81ff0f78e 100644 --- a/framework/core/js/forum/dist/app.js +++ b/framework/core/js/forum/dist/app.js @@ -28620,7 +28620,7 @@ System.register('flarum/initializers/humanTime', ['flarum/utils/humanTime'], fun * timestamps rendered with the `humanTime` helper. */ function humanTime() { - setInterval(updateHumanTimes, 1000); + setInterval(updateHumanTimes, 10000); } _export('default', humanTime); diff --git a/framework/core/js/lib/initializers/humanTime.js b/framework/core/js/lib/initializers/humanTime.js index 4ea2a04c8..c98b62256 100644 --- a/framework/core/js/lib/initializers/humanTime.js +++ b/framework/core/js/lib/initializers/humanTime.js @@ -14,5 +14,5 @@ function updateHumanTimes() { * timestamps rendered with the `humanTime` helper. */ export default function humanTime() { - setInterval(updateHumanTimes, 1000); + setInterval(updateHumanTimes, 10000); }