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:
parent
43def7493c
commit
a3af93acc4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue