Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix ConvertORToTapiTopology getXpdrUsedWavelength
[transportpce.git]
/
tapi
/
src
/
main
/
java
/
org
/
opendaylight
/
transportpce
/
tapi
/
topology
/
ConvertORToTapiTopology.java
diff --git
a/tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/ConvertORToTapiTopology.java
b/tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/ConvertORToTapiTopology.java
index 209fef96739068372b5f716096a1eac2c689d890..7d188bb2e081136bb76de594fc07e49ed98a8dad 100644
(file)
--- a/
tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/ConvertORToTapiTopology.java
+++ b/
tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/ConvertORToTapiTopology.java
@@
-590,8
+590,7
@@
public class ConvertORToTapiTopology {
}
Double freqValue = freq.getValue().doubleValue();
Double widthValue = width.getValue().doubleValue();
}
Double freqValue = freq.getValue().doubleValue();
Double widthValue = width.getValue().doubleValue();
- Double value = freqValue - widthValue * 0.001 / 2;
- return new HashMap<>(Map.of(value, value));
+ return new HashMap<>(Map.of(freqValue - widthValue * 0.001 / 2, freqValue + widthValue * 0.001 / 2));
}
public Map<Double, Double> getPPUsedWavelength(TerminationPoint tp) {
}
public Map<Double, Double> getPPUsedWavelength(TerminationPoint tp) {