From 8cd6d23ff24203a189d90d97115de92c4b76b2fb Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Mon, 28 Mar 2016 20:24:02 +0800 Subject: [PATCH] update --- templates/jlog/log_online.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index d32e33b53..1ab600565 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -109,7 +109,7 @@ {{ post.remote_ip }} {{ post.login_type }} 统计 - 监控 + 监控 {{ post.start_time|date:"Y-m-d H:i:s" }} @@ -138,8 +138,9 @@ var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/monitor'; var monitorid = obj.attr('monitor-id'); - var socket = new WebSocket(endpoint + '?id=' + monitorid); - + var file_path = obj.attr('file_path'); +{# var socket = new WebSocket(endpoint + '?id=' + monitorid);#} + var socket = new WebSocket(endpoint + '?file_path=' + file_path); var term = new Terminal({ cols: 80, rows: 24,