diff --git a/plugins/bbr/index.html b/plugins/bbr/index.html index a53f8768e..73d7da1ee 100755 --- a/plugins/bbr/index.html +++ b/plugins/bbr/index.html @@ -1,9 +1,17 @@ +
+
+
+

服务

+

说明

+
+
+
+
+
+
+ \ No newline at end of file diff --git a/plugins/bbr/index.py b/plugins/bbr/index.py index 9780ba8c3..e2d4659c4 100755 --- a/plugins/bbr/index.py +++ b/plugins/bbr/index.py @@ -11,6 +11,39 @@ sys.path.append(os.getcwd() + "/class/core") import public +def getPluginName(): + return 'bbr' + + +def getPluginDir(): + return public.getPluginDir() + '/' + getPluginName() + + +def getServerDir(): + return public.getServerDir() + '/' + getPluginName() + + +def getInitDFile(): + if app_debug: + return '/tmp/' + getPluginName() + return '/etc/init.d/' + getPluginName() + +def getArgs(): + args = sys.argv[2:] + tmp = {} + args_len = len(args) + + if args_len == 1: + t = args[0].strip('{').strip('}') + t = t.split(':') + tmp[t[0]] = t[1] + elif args_len > 1: + for i in range(len(args)): + t = args[i].split(':') + tmp[t[0]] = t[1] + + return tmp + def status(): return 'start' diff --git a/plugins/bbr/js/bbr.js b/plugins/bbr/js/bbr.js index e69de29bb..88ce53fec 100755 --- a/plugins/bbr/js/bbr.js +++ b/plugins/bbr/js/bbr.js @@ -0,0 +1,7 @@ + +function readme(){ + var con = ''; + $(".soft-man-con").html(con); +} \ No newline at end of file diff --git a/plugins/sphinx/js/sphinx.js b/plugins/sphinx/js/sphinx.js index a8c6ff487..bacda023a 100755 --- a/plugins/sphinx/js/sphinx.js +++ b/plugins/sphinx/js/sphinx.js @@ -122,7 +122,7 @@ function readme(){ for (var i = 0; i < rdata['data']['delta'].length; i++) { var delta_t = rdata['data']['delta'][i]; var list = delta_t.split(':'); - console.log(list); + // console.log(list); con += '
  • 增量索引:' + rdata['data']['cmd'] + ' '+ list[0] +' --rotate
  • '; con += '
  • 合并索引:' + rdata['data']['cmd'] + ' --merge '+ list[1] + ' ' + list[0] +' --rotate
  • '; }