lossStatistics.c 490 Bytes
Newer Older
Andreas Schmidt's avatar
Andreas Schmidt committed
1
2
3
4
5
6
7
8
9
10
11
12
#include "lossStatistics.h"

PrrtLossStatistics PrrtLossStatistics_add(PrrtLossStatistics a, PrrtLossStatistics b) {
    PrrtLossStatistics result;
    result.packetCount = a.packetCount + b.packetCount;
    result.erasureCount = a.erasureCount + b.erasureCount;
    result.burstCount = a.burstCount + b.burstCount;
    result.burstLength = a.burstLength + b.burstLength;
    result.gapCount = a.gapCount + b.gapCount;
    result.gapLength = a.gapLength + b.gapLength;
    return result;
}