Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
d1e4335c
Commit
d1e4335c
authored
1 month ago
by
pavel.uhanov
Browse files
Options
Downloads
Patches
Plain Diff
[*] wrn fix
parent
9c036986
No related branches found
No related tags found
1 merge request
!2120
feature-15728
Pipeline
#52473
passed with stage
in 22 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/net/dap_chain_node_rpc.c
+3
-3
3 additions, 3 deletions
modules/net/dap_chain_node_rpc.c
with
3 additions
and
3 deletions
modules/net/dap_chain_node_rpc.c
+
3
−
3
View file @
d1e4335c
...
...
@@ -51,7 +51,7 @@ static rpc_role_t s_curretn_role = RPC_ROLE_INVALID;
static
struct
cmd_call_stat
*
s_cmd_call_stat
=
NULL
;
DAP_STATIC_INLINE
s_get_role_from_str
(
const
char
*
a_str
)
DAP_STATIC_INLINE
rpc_role_t
s_get_role_from_str
(
const
char
*
a_str
)
{
if
(
!
a_str
)
return
RPC_ROLE_INVALID
;
if
(
!
strcmp
(
a_str
,
"user"
))
return
RPC_ROLE_USER
;
...
...
@@ -175,7 +175,7 @@ dap_string_t *dap_chain_node_rpc_states_info_read(dap_stream_node_addr_t a_addr)
dap_string_append_printf
(
l_ret
,
"Record timestamp: %s
\n
Record version: %u
\n
Node addr: %s
\n
"
"Location: %d
\n
Cli thread count: %u
\n
Links count: %u
\n
"
"Loads: %
d %d %d
\n
"
"Loads: %
lu %lu %lu
\n
"
"Procs: %u
\n
Free ram: %lu
\n
Total ram: %lu
\n
"
,
l_ts
,
l_node_info
->
version
,
l_node_addr_str
,
l_node_info
->
location
,
l_node_info
->
cli_thread_count
,
l_node_info
->
links_count
,
...
...
@@ -254,7 +254,7 @@ dap_list_t *dap_chain_node_rpc_get_states_list_sort(size_t *a_count)
dap_global_db_obj_t
*
l_nodes_obj
=
dap_global_db_get_all_sync
(
s_rpc_node_list_group
,
&
l_count
);
for
(
size_t
i
=
0
;
i
<
l_count
;
++
i
)
{
size_t
l_data_size
=
0
;
dap_chain_node_info_t
*
l_node_info_curr
=
dap_global_db_get_sync
(
s_rpc_server_states_group
,
(
l_nodes_obj
+
i
)
->
key
,
&
l_data_size
,
NULL
,
NULL
);
dap_chain_node_info_t
*
l_node_info_curr
=
(
dap_chain_node_info_t
*
)
dap_global_db_get_sync
(
s_rpc_server_states_group
,
(
l_nodes_obj
+
i
)
->
key
,
&
l_data_size
,
NULL
,
NULL
);
if
(
!
l_node_info_curr
)
{
log_it
(
L_ERROR
,
"Can't find info about rpc node %s"
,
(
l_nodes_obj
+
i
)
->
key
);
continue
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment