From 1498e23b482f4f8b2981eafa096c0251cae9df40 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 29 Aug 2022 12:14:13 +0800 Subject: [PATCH] Update haproxy.js --- plugins/haproxy/js/haproxy.js | 82 ----------------------------------- 1 file changed, 82 deletions(-) diff --git a/plugins/haproxy/js/haproxy.js b/plugins/haproxy/js/haproxy.js index 37448384c..facf1e0b4 100755 --- a/plugins/haproxy/js/haproxy.js +++ b/plugins/haproxy/js/haproxy.js @@ -30,20 +30,6 @@ function spPost(method, args, callback){ }); } -function rebuild(){ - var con = ''; - $(".soft-man-con").html(con); -} - -function rebuildIndex(){ - spPost('rebuild', '', function(data){ - if (data.data == 'ok'){ - layer.msg('在重建中..',{icon:1,time:2000,shade: [0.3, '#000']}); - } else { - layer.msg(data.data,{icon:2,time:2000,shade: [0.3, '#000']}); - } - }); -} function secToTime(s) { var t; @@ -65,71 +51,3 @@ function secToTime(s) { return t; } - -function runStatus(){ - spPost('run_status', '', function(data){ - var rdata = $.parseJSON(data.data); - if (!rdata['status']){ - layer.msg(rdata['msg'],{icon:2,time:2000,shade: [0.3, '#000']}); - return; - } - var idata = rdata.data; - // console.log(idata); - var con = '
\ - \ - \ - \ - \ - \ - \ -
运行时间' + secToTime(idata.uptime) + '每秒查询' + parseInt(parseInt(idata.queries) / parseInt(idata.uptime)) + '
总连接次数' + idata.connections + 'work_queue_length' +idata.work_queue_length + '
agent_connect' + idata.agent_connect+ 'workers_active' + idata.workers_active + '
agent_retry' + idata.agent_retry + 'workers_total' + idata.workers_total + '
\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -
command_delete' + idata.command_delete + 'command_delete
command_excerpt' + idata.command_excerpt + 'command_excerpt
command_flushattrs' + idata.command_flushattrs + 'command_flushattrs
command_keywords' + idata.command_keywords + 'command_keywords
command_persist' + idata.command_persist + 'command_persist
command_search' + idata.command_search + 'command_search
command_status' + idata.command_status + 'command_status
command_update' + idata.command_update + 'command_update
'; - - $(".soft-man-con").html(con); - }); -} - -function readme(){ - spPost('sphinx_cmd', '', function(data){ - - var rdata = $.parseJSON(data.data); - if (!rdata['status']){ - layer.msg(rdata['msg'],{icon:2,time:2000,shade: [0.3, '#000']}); - return; - } - - var con = ''; - - $(".soft-man-con").html(con); - }); - -} -