From 9460ec77edfdac6d6481eba22bb4be5b4d231ca5 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Tue, 3 Mar 2020 22:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=90=8E=E5=8F=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8A=9F=E8=83=BD--=E5=8F=96=E6=B6=88=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/admins/dashboards_controller.rb | 10 +++++----- app/views/admins/dashboards/index.html.erb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/admins/dashboards_controller.rb b/app/controllers/admins/dashboards_controller.rb index 00ff8234b..e879a9c14 100644 --- a/app/controllers/admins/dashboards_controller.rb +++ b/app/controllers/admins/dashboards_controller.rb @@ -8,11 +8,11 @@ class Admins::DashboardsController < Admins::BaseController shixun_tomcat = edu_setting('cloud_bridge') - # uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo" - # res = interface_get uri, 502, "数据接口延迟" - # if res['code'] == 0 - # @pod_num = res['sum'] || 0 - # end + uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo" + res = interface_get uri, 502, "数据接口延迟" + if res['code'] == 0 + @pod_num = res['sum'] || 0 + end end def month_active_user diff --git a/app/views/admins/dashboards/index.html.erb b/app/views/admins/dashboards/index.html.erb index f864b8ed0..b463e5571 100644 --- a/app/views/admins/dashboards/index.html.erb +++ b/app/views/admins/dashboards/index.html.erb @@ -112,7 +112,7 @@
当前Pod总数
- <%#= @pod_num.to_i %> + <%= @pod_num.to_i %>