<p>ipse has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18334">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stats: Correctly count lchans under BORKEN/NOT_INITIALIZED TS.<br><br>lchans under a BORKEN/NOT_INITIALIZED TS should be counted as used<br>just as BORKEN lchans under a normal TS.<br><br>Change-Id: Ic3dbc6b176d5dcff7ed2589bb875abf93e9f7ab0<br>---<br>M src/osmo-bsc/chan_alloc.c<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/34/18334/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/chan_alloc.c b/src/osmo-bsc/chan_alloc.c</span><br><span>index 27c49cd..fd919e7 100644</span><br><span>--- a/src/osmo-bsc/chan_alloc.c</span><br><span>+++ b/src/osmo-bsc/chan_alloc.c</span><br><span>@@ -86,6 +86,14 @@</span><br><span>                                      continue;</span><br><span> </span><br><span>                                pl->total++;</span><br><span style="color: hsl(120, 100%, 40%);">+                               </span><br><span style="color: hsl(120, 100%, 40%);">+                              /* lchans under a BORKEN/NOT_INITIALIZED TS should</span><br><span style="color: hsl(120, 100%, 40%);">+                             * be counted as used just as BORKEN lchans under</span><br><span style="color: hsl(120, 100%, 40%);">+                              * a normal TS */</span><br><span style="color: hsl(120, 100%, 40%);">+                             if (!ts_is_usable(ts)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                      pl->used++;</span><br><span style="color: hsl(120, 100%, 40%);">+                                        continue;</span><br><span style="color: hsl(120, 100%, 40%);">+                             }</span><br><span> </span><br><span>                                switch (lchan->fi->state) {</span><br><span>                            case LCHAN_ST_UNUSED:</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18334">change 18334</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bsc/+/18334"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic3dbc6b176d5dcff7ed2589bb875abf93e9f7ab0 </div>
<div style="display:none"> Gerrit-Change-Number: 18334 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>