<p>daniel <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23167">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stats: Ensure that each osmo_stat_item only reports once per interval<br><br>We should never report multiple values for a metric. It is confusing for<br>the log reporter and wrong for statsd. Statsd will record only one value,<br>but will it be the first, last, ...?<br>This can happen if an osmo_stat_item changes more than once within the<br>same reporting interval.<br><br>With this patch only one aggregate value is sent to the log reporters.<br>The value reported is the maximum during this interval. Other<br>aggregations could be possible (min, last), but reporting a (useful)<br>average is not because the values don't include a timestamp and most<br>osmo_stat_items change at unregular intervals.<br><br>Change-Id: I366ab1c66f4ae6363111ea4e41b66b7d5bcade9c<br>Related: SYS#4877<br>---<br>M src/stats.c<br>M tests/stats/stats_test.c<br>M tests/stats/stats_test.ok<br>3 files changed, 38 insertions(+), 18 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/67/23167/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23167">change 23167</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/libosmocore/+/23167"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I366ab1c66f4ae6363111ea4e41b66b7d5bcade9c </div>
<div style="display:none"> Gerrit-Change-Number: 23167 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>