actually build the samples

and fix the resulting breakage (of not compiling them for some time,
that is)

also remove the last casts to FiniteDuration
This commit is contained in:
Roland 2012-10-15 17:17:54 +02:00
parent bff79c2f94
commit b96d77c15a
14 changed files with 17 additions and 17 deletions

View file

@ -339,7 +339,7 @@ private[akka] class ThrottleActor(channelContext: ChannelHandlerContext)
else {
val microsToSend = (now - d.lastSent) / 1000
val (s1, s2) = split(d.queue.head, (microsToSend * d.rateMBit / 8).toInt)
(d.copy(queue = s2 +: d.queue.tail), toSend :+ s1, Some(((timeForPacket - now).nanos min packetSplitThreshold).asInstanceOf[FiniteDuration]))
(d.copy(queue = s2 +: d.queue.tail), toSend :+ s1, Some((timeForPacket - now).nanos min packetSplitThreshold))
}
}
}