Avoid a compilation warning (-deprecation)
authorChristos KK Loverdos <loverdos@gmail.com>
Tue, 17 Jan 2012 14:24:22 +0000 (16:24 +0200)
committerChristos KK Loverdos <loverdos@gmail.com>
Tue, 17 Jan 2012 14:24:22 +0000 (16:24 +0200)
src/main/scala/gr/grnet/aquarium/logic/accounting/Accounting.scala

index 9cda07c..92345de 100644 (file)
@@ -190,7 +190,7 @@ trait Accounting extends DSLUtils with Loggable {
   def calcChargeChunksContinuous(algChunked: Map[Timeslot, DSLAlgorithm],
                                  priChunked: Map[Timeslot, DSLPriceList],
                                  volume: Float, res: DSLResource): List[ChargeChunk] = {
-    algChunked.keySet.map {
+    algChunked.keysIterator.map {
       x =>
         ChargeChunk(volume,
           algChunked.get(x).get.algorithms.getOrElse(res, ""),