-
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several minor cleanups. Fix socket id stat for listener.
- Loading branch information
Showing
4 changed files
with
19 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// Copyright 2020 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2021 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// Copyright 2018 Devolutions <[email protected]> | ||
// | ||
|
@@ -179,9 +179,9 @@ dialer_stats_init(nni_dialer *d) | |
dialer_stat_init(d, &d->st_oom, &oom_info); | ||
dialer_stat_init(d, &d->st_reject, &reject_info); | ||
|
||
nni_stat_set_id(&d->st_root, d->d_id); | ||
nni_stat_set_id(&d->st_id, d->d_id); | ||
nni_stat_set_id(&d->st_sock, nni_sock_id(d->d_sock)); | ||
nni_stat_set_id(&d->st_root, (int) d->d_id); | ||
nni_stat_set_id(&d->st_id, (int) d->d_id); | ||
nni_stat_set_id(&d->st_sock, (int) nni_sock_id(d->d_sock)); | ||
nni_stat_set_string(&d->st_url, d->d_url->u_rawurl); | ||
nni_stat_register(&d->st_root); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// Copyright 2020 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2021 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// Copyright 2018 Devolutions <[email protected]> | ||
// | ||
|
@@ -173,8 +173,9 @@ listener_stats_init(nni_listener *l) | |
listener_stat_init(l, &l->st_oom, &oom_info); | ||
listener_stat_init(l, &l->st_reject, &reject_info); | ||
|
||
nni_stat_set_id(&l->st_root, l->l_id); | ||
nni_stat_set_id(&l->st_id, l->l_id); | ||
nni_stat_set_id(&l->st_root, (int) l->l_id); | ||
nni_stat_set_id(&l->st_id, (int) l->l_id); | ||
nni_stat_set_id(&l->st_sock, (int) nni_sock_id(l->l_sock)); | ||
nni_stat_set_string(&l->st_url, l->l_url->u_rawurl); | ||
nni_stat_register(&l->st_root); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters