Skip to content

Commit 0db171d

Browse files
authored
Merge branch 'dev' into plugin2managed
2 parents 9cb3837 + 206faeb commit 0db171d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/network_graph_attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ graph [
2323
target 0
2424
label "path from 1.2.3.4 to 1.2.3.4"
2525
latency "10 ms"
26-
jitter 0.0
26+
jitter "0 ms"
2727
packet_loss 0.0
2828
]
2929
]
@@ -140,7 +140,7 @@ The latency that will be added to packets traversing this edge. This value is us
140140

141141
Required: False
142142
Default: n/a
143-
Type: Float
143+
Type: String
144144

145145
This keyword is allowed but currently nonfunctional; it is reserved for future use.
146146

src/main/routing/topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ static gboolean _topology_checkGraphAttributes(Topology* top) {
612612
if(_topology_isValidEdgeAttributeKey(name, EDGE_ATTR_LATENCY)) {
613613
isSuccess = isSuccess && _topology_checkAttributeType(name, type, IGRAPH_ATTRIBUTE_STRING);
614614
} else if(_topology_isValidEdgeAttributeKey(name, EDGE_ATTR_JITTER)) {
615-
isSuccess = isSuccess && _topology_checkAttributeType(name, type, IGRAPH_ATTRIBUTE_NUMERIC);
615+
isSuccess = isSuccess && _topology_checkAttributeType(name, type, IGRAPH_ATTRIBUTE_STRING);
616616
} else if(_topology_isValidEdgeAttributeKey(name, EDGE_ATTR_PACKETLOSS)) {
617617
isSuccess = isSuccess && _topology_checkAttributeType(name, type, IGRAPH_ATTRIBUTE_NUMERIC);
618618
} else if(_topology_isValidEdgeAttributeKey(name, EDGE_ATTR_LABEL)) {
@@ -957,7 +957,7 @@ static gboolean _topology_checkGraphEdgesHelperHook(Topology* top, igraph_intege
957957
const gchar* jitterKey = _topology_edgeAttributeToString(EDGE_ATTR_JITTER);
958958
gdouble jitterValue;
959959
if(igraph_cattribute_has_attr(&top->graph, IGRAPH_ATTRIBUTE_EDGE, jitterKey) &&
960-
_topology_findEdgeAttributeDouble(top, edgeIndex, EDGE_ATTR_JITTER, &jitterValue)) {
960+
_topology_findEdgeAttributeStringTimeMs(top, edgeIndex, EDGE_ATTR_JITTER, &jitterValue)) {
961961

962962
if(jitterValue >= 0.0f) {
963963
g_string_append_printf(message, " %s='%f'", jitterKey, jitterValue);

src/test/tor/minimal/tor-minimal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ network:
1717
source 0
1818
target 0
1919
latency "50 ms"
20-
jitter 0.0
20+
jitter "0 ms"
2121
packet_loss 0.0
2222
]
2323
]

0 commit comments

Comments
 (0)