Split PacketCount to Egress and Ingress

Also, 1 packet may be counted in N topologies, so you can't rely on the
sum of all packet counts across topologies having any relation to the
sampling data.
This commit is contained in:
Peter Bourgon
2015-08-03 14:58:41 +02:00
parent 0361b11b87
commit e1f7752a34
13 changed files with 131 additions and 111 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ func TestAPITopologyApplications(t *testing.T) {
t.Fatalf("JSON parse error: %s", err)
}
if want, have := (report.EdgeMetadata{
PacketCount: newu64(10),
EgressByteCount: newu64(100),
EgressPacketCount: newu64(10),
EgressByteCount: newu64(100),
}), edge.Metadata; !reflect.DeepEqual(want, have) {
t.Error(test.Diff(want, have))
}