Skip to content
Snippets Groups Projects
Commit a885cf02 authored by Hammouda Elbez's avatar Hammouda Elbez :computer:
Browse files

N2S3 Mongo class updated

parent 9081643b
No related branches found
No related tags found
No related merge requests found
...@@ -408,7 +408,7 @@ class SynapticWeight(list : Seq[Seq[Seq[ConnectionPath]]], refreshRate : Int = 1 ...@@ -408,7 +408,7 @@ class SynapticWeight(list : Seq[Seq[Seq[ConnectionPath]]], refreshRate : Int = 1
y = cnx._2 y = cnx._2
} }
}) })
documents = documents.::(Document("T" -> BsonDouble.apply(BigDecimal((System.currentTimeMillis() - globalTimestamps)/1000.0).setScale(6, BigDecimal.RoundingMode.HALF_UP).toDouble), "C" -> v._1, "To" -> BsonInt32.apply(Integer.valueOf(v._2.split(":")(1))), "V" -> documents = documents.::(Document("T" -> BsonDouble.apply(BigDecimal((System.currentTimeMillis() - globalTimestamps)/1000.0).setScale(6, BigDecimal.RoundingMode.HALF_UP).toDouble), "C" -> BsonInt32.apply(Integer.valueOf(v._2.split(":")(0).takeRight(1))-1), "To" -> BsonInt32.apply(Integer.valueOf(v._2.split(":")(1))), "V" ->
BsonDouble.apply(BigDecimal(v._3).setScale(6, BigDecimal.RoundingMode.HALF_UP).toDouble),"index" -> Document("x" -> y, "y" -> x), "L" -> v._2.split(":")(0))) BsonDouble.apply(BigDecimal(v._3).setScale(6, BigDecimal.RoundingMode.HALF_UP).toDouble),"index" -> Document("x" -> y, "y" -> x), "L" -> v._2.split(":")(0)))
}) })
valuesTmp = values valuesTmp = values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment