stats: Correctly count lchans under BORKEN TS.

lchans under a BORKEN TS should be counted as used just as BORKEN
lchans under a normal TS.

Change-Id: Ic3dbc6b176d5dcff7ed2589bb875abf93e9f7ab0
This commit is contained in:
Alexander Chemeris 2020-05-17 00:55:01 +03:00 committed by laforge
parent 43def7493c
commit a3af93acc4
1 changed files with 7 additions and 0 deletions

View File

@ -87,6 +87,13 @@ void bts_chan_load(struct pchan_load *cl, const struct gsm_bts *bts)
pl->total++;
/* lchans under a BORKEN TS should be counted
* as used just as BORKEN lchans under a normal TS */
if (ts->fi->state == TS_ST_BORKEN) {
pl->used++;
continue;
}
switch (lchan->fi->state) {
case LCHAN_ST_UNUSED:
break;