Update openresty.js

pull/624/head
Mr Chen 8 months ago
parent f67342fd7a
commit b766a6eb6a
  1. 11
      plugins/openresty/js/openresty.js

@ -114,13 +114,14 @@ function orPluginOpServiceOp(a,b,c,d,a,v,request_callback){
function getOpStatus() {
var loadT = layer.msg('正在处理,请稍后...', { icon: 16, time: 0, shade: 0.3 });
$.post('/plugins/run', {name:'openresty', func:'run_info'}, function(data) {
layer.close(loadT);
if (!data.status){
showMsg(data.msg, function(){}, null,3000);
return;
}
layer.close(loadT);
try {
var rdata = $.parseJSON(data.data);
if (!data.status){
showMsg(data.msg, function(){}, null,3000);
return;
}
var con = "<div><table class='table table-hover table-bordered'>\
<tr><th>活动连接(Active connections)</th><td>" + rdata.active + "</td></tr>\
<tr><th>总连接次数(accepts)</th><td>" + rdata.accepts + "</td></tr>\

Loading…
Cancel
Save