This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
ipse gerrit-no-reply at lists.osmocom.orgipse has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18334 ) Change subject: stats: Correctly count lchans under BORKEN/NOT_INITIALIZED TS. ...................................................................... stats: Correctly count lchans under BORKEN/NOT_INITIALIZED TS. lchans under a BORKEN/NOT_INITIALIZED TS should be counted as used just as BORKEN lchans under a normal TS. Change-Id: Ic3dbc6b176d5dcff7ed2589bb875abf93e9f7ab0 --- M src/osmo-bsc/chan_alloc.c 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/34/18334/1 diff --git a/src/osmo-bsc/chan_alloc.c b/src/osmo-bsc/chan_alloc.c index 27c49cd..fd919e7 100644 --- a/src/osmo-bsc/chan_alloc.c +++ b/src/osmo-bsc/chan_alloc.c @@ -86,6 +86,14 @@ continue; pl->total++; + + /* lchans under a BORKEN/NOT_INITIALIZED TS should + * be counted as used just as BORKEN lchans under + * a normal TS */ + if (!ts_is_usable(ts)) { + pl->used++; + continue; + } switch (lchan->fi->state) { case LCHAN_ST_UNUSED: -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18334 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Ic3dbc6b176d5dcff7ed2589bb875abf93e9f7ab0 Gerrit-Change-Number: 18334 Gerrit-PatchSet: 1 Gerrit-Owner: ipse <Alexander.Chemeris at gmail.com> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200516/563913e7/attachment.htm>