Commit bb3792b8 authored by Romain Courteaud's avatar Romain Courteaud

Instance will contact master less often

parent d89873b0
...@@ -120,7 +120,12 @@ encode : function (input) {\n ...@@ -120,7 +120,12 @@ encode : function (input) {\n
var created_at = new Date(Date.parse(data.created_at)),\n var created_at = new Date(Date.parse(data.created_at)),\n
now = new Date(),\n now = new Date(),\n
context = $(this);\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 $(this).attr("class", "monitoring_ok")\n
.attr("title", data.text)\n .attr("title", data.text)\n
.html("<a href=\'" + data[\'@document\'] + "\'></a>");\n .html("<a href=\'" + data[\'@document\'] + "\'></a>");\n
......
438 439
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment