Projects
openEuler:C
gazelle
_service:tar_scm:0110-add-example-keep-alive-in...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0110-add-example-keep-alive-interval-para.patch of Package gazelle
From f2770a0dd75007d152bdb346e16009227a6d55fa Mon Sep 17 00:00:00 2001 From: hantwofish <hankangkang5@huawei.com> Date: Thu, 4 Jan 2024 16:08:02 +0800 Subject: [PATCH] add example keep-alive interval para --- src/ltran/ltran_dfx.c | 4 ++-- 8 files changed, 47 insertions(+), 8 deletions(-) diff --git a/src/ltran/ltran_dfx.c b/src/ltran/ltran_dfx.c index 08c9da3..5e22e20 100644 --- a/src/ltran/ltran_dfx.c +++ b/src/ltran/ltran_dfx.c @@ -1002,8 +1002,8 @@ static void gazelle_keepalive_string(char* str, int buff_len, struct gazelle_sta if (conn_info->keepalive == 0) { return; } - int ret = sprintf_s(str, buff_len, "(%u,%u,%u)", conn_info->keep_idle, conn_info->keep_intvl, - conn_info->keep_cnt); + int ret = sprintf_s(str, buff_len, "(%u,%u,%u)", (conn_info->keep_idle) / 1000, + (conn_info->keep_intvl) / 1000, conn_info->keep_cnt); if (ret < 0) { printf("gazelle_keepalive_string sprintf_s fail ret=%d\n", ret); return; -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.