sbd-npm 1.4.99 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/status.js +6 -3
  3. package/util.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.99",
3
+ "version": "1.5.1",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -275,8 +275,8 @@ $(function () {
275
275
  {"name": "进程名", "table_sort": 1},
276
276
  {"name": "用户名", "table_sort": 1},
277
277
  {"name": "状态", "table_sort": 1},
278
- {"name": "实际内存", "class": "info", "table_sort": 1, "title": "resident set size"},
279
- {"name": "虚拟内存", "table_sort": 1},
278
+ {"name": "物理内存", "class": "info", "table_sort": 1, "title": "Resident Set Size(常驻内存,进程实际占用的物理内存)"},
279
+ {"name": "虚拟内存", "table_sort": 1, "title": "Virtual Memory Size(进程申请的虚拟地址空间总量)"},
280
280
  {"name": "启动命令"},
281
281
  {"name": "创建时间", "table_sort": 1},
282
282
  {"name": "操作"}
@@ -819,6 +819,7 @@ $(function () {
819
819
  "head_columns": [
820
820
  {"name": "进程ID", "table_sort": 1},
821
821
  {"name": "状态", "table_sort": 1},
822
+ {"name": "物理内存", "table_sort": 1, "title": "Resident Set Size(常驻内存,进程实际占用的物理内存)"},
822
823
  {"name": "启动命令"},
823
824
  {"name": "创建时间", "class": "info", "table_sort": 1},
824
825
  {"name": "操作"}
@@ -851,6 +852,7 @@ $(function () {
851
852
  }
852
853
  html.push("<td>", item.pid, "</td>");
853
854
  html.push("<td>", item.status, "</td>");
855
+ html.push("<td data-val='", item.rss, "'>", Util.trans_byte_size(item.rss), "</td>");
854
856
  let cmdline = Util.substring(item.cmdline, 100);
855
857
  if (is_xmr === 1) {
856
858
  html.push("<td>", Util.pack_html_link("/xmr", cmdline), "</td>");
@@ -1669,7 +1671,7 @@ $(function () {
1669
1671
  });
1670
1672
 
1671
1673
  Util.init_modal_skeleton("mysql_access_modal");
1672
- $("#mysql_access_modal_title").html("连接 MySQL IP 日志统计数据");
1674
+ $("#mysql_access_modal_title").html("连接MySQL的IP日志统计数据");
1673
1675
  Util.init_table_skeleton({
1674
1676
  "element_id": "mysql_access_modal_body",
1675
1677
  "caption": '<caption class="' + (Util.is_mobile() ? "text-left" : "text-right") + '" id="mysql_access_summary"></caption>',
@@ -1689,6 +1691,7 @@ $(function () {
1689
1691
  });
1690
1692
  let mam_obj = $('#mysql_access_modal');
1691
1693
  mam_obj.on('shown.bs.modal', function (e) {
1694
+ $("#mysql_access_filter").val("0");
1692
1695
  Status.fetch_mysql_access_data();
1693
1696
  });
1694
1697
  mam_obj.on('hidden.bs.modal', function () {
package/util.js CHANGED
@@ -1797,7 +1797,7 @@ const Util = {
1797
1797
  Util.hide_tips();
1798
1798
  });
1799
1799
  let ctt_obj = $("#category_top_type");
1800
- ctt_obj.find("option[value='" + category_top_type + "']").attr("selected", true);
1800
+ ctt_obj.val(category_top_type);
1801
1801
  ctt_obj.change(function() {
1802
1802
  Util.render_category_top_modal();
1803
1803
  });
@@ -2159,7 +2159,7 @@ const Util = {
2159
2159
  html.push('</select>');
2160
2160
  let obj = $("#" + component_id);
2161
2161
  obj.html(html.join(""));
2162
- obj.find("option[value='" + (select_val > 0 ? select_val : 100) + "']").attr("selected", true);
2162
+ obj.val(select_val > 0 ? select_val : 100);
2163
2163
  },
2164
2164
 
2165
2165
  /**
@@ -3619,7 +3619,7 @@ const Util = {
3619
3619
  }
3620
3620
  nth -= 1;
3621
3621
  });
3622
- obj.find("option[value='" + option_val + "']").attr("selected", true);
3622
+ obj.val(option_val);
3623
3623
  },
3624
3624
 
3625
3625
  /**
@@ -3637,7 +3637,7 @@ const Util = {
3637
3637
  }
3638
3638
  });
3639
3639
  if (option_val !== "") {
3640
- obj.find("option[value='" + option_val + "']").attr("selected", true);
3640
+ obj.val(option_val);
3641
3641
  } else {
3642
3642
  Util.set_option_selected(obj, 100);
3643
3643
  }