<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/24723">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_rlcmac_sched: fix incorrect length counted for CTR_RLC_DL_BYTES<br><br>msg->data_len is the total number of bytes available in the buffer,<br>while for CTR_RLC_DL_BYTES we need to count size of the actual<br>payload within the buffer.<br><br>Change-Id: I6884d220f3d06a79b16c18ccc2d2a6cd047b8251<br>---<br>M src/gprs_rlcmac_sched.cpp<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/23/24723/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gprs_rlcmac_sched.cpp b/src/gprs_rlcmac_sched.cpp</span><br><span>index 4c1a6ab..2adf1f3 100644</span><br><span>--- a/src/gprs_rlcmac_sched.cpp</span><br><span>+++ b/src/gprs_rlcmac_sched.cpp</span><br><span>@@ -506,7 +506,7 @@</span><br><span>        }</span><br><span> </span><br><span>        /* msg is now available */</span><br><span style="color: hsl(0, 100%, 40%);">-      bts_do_rate_ctr_add(bts, CTR_RLC_DL_BYTES, msg->data_len);</span><br><span style="color: hsl(120, 100%, 40%);">+ bts_do_rate_ctr_add(bts, CTR_RLC_DL_BYTES, msgb_length(msg));</span><br><span> </span><br><span>    /* set USF */</span><br><span>        OSMO_ASSERT(msgb_length(msg) > 0);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/24723">change 24723</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-pcu/+/24723"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6884d220f3d06a79b16c18ccc2d2a6cd047b8251 </div>
<div style="display:none"> Gerrit-Change-Number: 24723 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>