mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
remove GAP_SEQUENCE statistic
This commit is contained in:
parent
d162963cae
commit
ad13abd675
2 changed files with 3 additions and 5 deletions
|
@ -46,7 +46,6 @@ enum stats_format {
|
|||
enum stats_id {
|
||||
STATS_SKIPPED, /**< Counter for skipped samples due to hooks. */
|
||||
STATS_REORDERED, /**< Counter for reordered samples. */
|
||||
STATS_GAP_SEQUENCE, /**< Histogram of sequence number displacement of received samples. */
|
||||
STATS_GAP_SAMPLE, /**< Histogram for inter sample timestamps (as sent by remote). */
|
||||
STATS_GAP_RECEIVED, /**< Histogram for inter sample arrival time (as seen by this instance). */
|
||||
STATS_OWD, /**< Histogram for one-way-delay (OWD) of received samples. */
|
||||
|
@ -92,4 +91,4 @@ void stats_send(struct stats *s, struct node *n);
|
|||
|
||||
enum stats_id stats_lookup_id(const char *name);
|
||||
|
||||
#endif /* _STATS_H_ */
|
||||
#endif /* _STATS_H_ */
|
||||
|
|
|
@ -90,11 +90,10 @@ void stats_collect(struct stats_delta *s, struct sample *smps[], size_t cnt)
|
|||
if (previous) {
|
||||
stats_update(s, STATS_GAP_RECEIVED, time_delta(&previous->ts.received, &smps[i]->ts.received));
|
||||
stats_update(s, STATS_GAP_SAMPLE, time_delta(&previous->ts.origin, &smps[i]->ts.origin));
|
||||
stats_update(s, STATS_OWD, -time_delta(&smps[i]->ts.origin, &smps[i]->ts.received));
|
||||
stats_update(s, STATS_GAP_SEQUENCE, smps[i]->sequence - (int32_t) previous->sequence);
|
||||
stats_update(s, STATS_OWD, time_delta(&smps[i]->ts.origin, &smps[i]->ts.received));
|
||||
|
||||
dist = smps[i]->sequence - (int32_t) previous->sequence;
|
||||
if (dist > 0)
|
||||
if (dist != 1)
|
||||
stats_update(s, STATS_REORDERED, dist);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue