From bb3792b8af15586646e4dfe57f2c15c28d4b3bf1 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 12 Sep 2012 11:13:33 +0200 Subject: [PATCH] Instance will contact master less often --- .../portal_skins/vifib_hosting/Base_getVifibOverview.xml | 7 ++++++- master/bt5/vifib_web/bt/revision | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getVifibOverview.xml b/master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getVifibOverview.xml index 33cd16b16..8a898fb8c 100644 --- a/master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getVifibOverview.xml +++ b/master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getVifibOverview.xml @@ -120,7 +120,12 @@ encode : function (input) {\n var created_at = new Date(Date.parse(data.created_at)),\n now = new Date(),\n context = $(this);\n - if (/#ok/.test(data.text) & (now - created_at < 300000)) {\n + // 5 minute for computer. 1 day for instance.\n + if (/#ok/.test(data.text) & /computer_module/.test(data[\'@document\']) & (now - created_at < 300000)) {\n + $(this).attr("class", "monitoring_ok")\n + .attr("title", data.text)\n + .html("<a href=\'" + data[\'@document\'] + "\'></a>");\n + } else if (/#ok/.test(data.text) & /software_instance_module/.test(data[\'@document\']) & (now - created_at < 86400000)) {\n $(this).attr("class", "monitoring_ok")\n .attr("title", data.text)\n .html("<a href=\'" + data[\'@document\'] + "\'></a>");\n diff --git a/master/bt5/vifib_web/bt/revision b/master/bt5/vifib_web/bt/revision index 9ec873d37..273849746 100644 --- a/master/bt5/vifib_web/bt/revision +++ b/master/bt5/vifib_web/bt/revision @@ -1 +1 @@ -438 \ No newline at end of file +439 \ No newline at end of file -- 2.30.9