final long sentPackets = cur.packetsSent. get(iface) - prev.packetsSent. get(iface);
final long collisions = cur.collisions. get(iface) - prev.collisions. get(iface);
{
final String key = getKeyReceivedBytes(iface);
data.put(key, new AScalarDataPoint(timestamp, key, receivedBytes * 10*1000 / diffTime, 1));
}
{
final String key = getKeyReceivedPackets(iface);
data.put(key, new AScalarDataPoint(timestamp, key, receivedPackets * 10*1000 / diffTime, 1));
}
{
final String key = getKeySentBytes(iface);
data.put(key, new AScalarDataPoint(timestamp, key, sentBytes * 10*1000 / diffTime, 1));
}
{
final String key = getKeySentPackets(iface);
data.put(key, new AScalarDataPoint(timestamp, key, sentPackets * 10*1000 / diffTime, 1));
}
{
final String key = getKeyCollisions(iface);
data.put(key, new AScalarDataPoint(timestamp, key, collisions * 10*1000 / diffTime, 1));
}
}
}