From 9d8f034416b8374d7bd4d53a9c35011f2b3a7c94 Mon Sep 17 00:00:00 2001 From: Denis Talakevich Date: Sat, 6 Mar 2021 23:16:48 +0200 Subject: [PATCH] fix active_nodes page fixes #916 --- app/decorators/active_node_decorator.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/decorators/active_node_decorator.rb b/app/decorators/active_node_decorator.rb index d0e24fb2c..36357f64b 100644 --- a/app/decorators/active_node_decorator.rb +++ b/app/decorators/active_node_decorator.rb @@ -14,24 +14,24 @@ def safe_system_status def active_calls_count if safe_system_status.present? - h.link_to(safe_system_status['calls'], h.active_calls_path(q: { node_id_eq: model.id })) + h.link_to(safe_system_status[:calls], h.active_calls_path(q: { node_id_eq: model.id })) end end def version - safe_system_status['version'] if safe_system_status.present? + safe_system_status[:version] if safe_system_status.present? end def shutdown_req_time - safe_system_status['shutdown_request_time'] if safe_system_status.present? + safe_system_status[:shutdown_request_time] if safe_system_status.present? end def sessions_num - safe_system_status['sessions'] if safe_system_status.present? + safe_system_status[:sessions] if safe_system_status.present? end def uptime - humanize_time_interval(safe_system_status['uptime']) if safe_system_status.present? + humanize_time_interval(safe_system_status[:uptime]) if safe_system_status.present? end def humanize_time_interval(seconds)