<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/19132">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Don't print 'bogus channel load samplpe' message if total == 0<br><br>Change-Id: I857fecc76dc16ba4431f3c0142bb0d798a9f73dc<br>Closes: OS#4614<br>---<br>M src/osmo-bsc/chan_alloc.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/32/19132/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 f23a982..9b80df3 100644</span><br><span>--- a/src/osmo-bsc/chan_alloc.c</span><br><span>+++ b/src/osmo-bsc/chan_alloc.c</span><br><span>@@ -203,9 +203,11 @@</span><br><span>     }</span><br><span> </span><br><span>        /* Check for invalid samples (shouldn't happen). */</span><br><span style="color: hsl(0, 100%, 40%);">- if (total == 0 || used > total) {</span><br><span style="color: hsl(120, 100%, 40%);">+  if (used > total) {</span><br><span>               LOG_BTS(bts, DRLL, LOGL_NOTICE, "bogus channel load sample (used=%"PRIu64" / total=%"PRIu32")\n",</span><br><span>                      used, total);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+     if (total == 0 || used > total) {</span><br><span>                 bts->T3122 = 0; /* disable override of network-wide default value */</span><br><span>              bts->chan_load_samples_idx = 0; /* invalidate other samples collected so far */</span><br><span>           return;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/19132">change 19132</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/+/19132"/><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: I857fecc76dc16ba4431f3c0142bb0d798a9f73dc </div>
<div style="display:none"> Gerrit-Change-Number: 19132 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>