sbd-npm 1.5.13 → 1.5.15

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 (2) hide show
  1. package/package.json +1 -1
  2. package/status.js +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.13",
3
+ "version": "1.5.15",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -75,13 +75,12 @@ $(function () {
75
75
  handle_status: function () {
76
76
  Util.post(location.pathname, {active_div: localStorage[Status.tab_token], date: $("#ip_date").val()}, function (j) {
77
77
  let html = [];
78
- if (!$("#start_time").length) {
79
- html.push("<tr><th width='25%'>系统时区</th><td>", Status.map_url(j.timezone), "</td>");
78
+ if (!document.getElementById("start_time")) {
79
+ let error_tips = j.error_num > 0 ? ("class='danger' title='" + j.error_num + "' ") : "";
80
+ html.push("<tr><th ", error_tips, "width='25%'>系统时区</th><td>", Status.map_url(j.timezone), "</td>");
80
81
  html.push("<th id='start_time' width='25%'>服务器运行时间</th><td colspan='3'>", Util.seconds_to_format(j.start_time), "(" + j.up_time + ")</td></tr>");
81
82
  html.push("<tr><th>数据库最后同步时间</th><td>", Util.seconds_to_format(j.sync_end_time), "</td>");
82
83
  html.push("<th>数据库句柄更新时间</th><td colspan='3'>", Util.seconds_to_format(j.db_time), "</td></tr>");
83
- html.push("<tr><th>成交量最后同步时间</th><td>", Util.seconds_to_format(j.sync_amount_time), "</td>");
84
- html.push("<th>位置数据最后同步时间</th><td colspan='3'>", Util.seconds_to_format(j.location_time), "</td></tr>");
85
84
  // 数据库
86
85
  html.push("<tr><th>数据库版本</th><td>", j.db_version, "</td>");
87
86
  let mysql_connections = "<a data-toggle='modal' data-target='.mysql_process_modal'><b>" + j.mysql_process_num + "</b></a> / " + j.max_connections;