Calculate hours, not minutes
authorGeorgios Gousios <gousiosg@gmail.com>
Mon, 9 Jan 2012 12:23:45 +0000 (14:23 +0200)
committerGeorgios Gousios <gousiosg@gmail.com>
Mon, 9 Jan 2012 12:44:28 +0000 (14:44 +0200)
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/Timeslot.scala

index 944b750..7f81035 100644 (file)
@@ -180,5 +180,5 @@ case class Timeslot(from: Date, to: Date) extends Ordered[Timeslot] {
   /**
    * Converts the timeslot to the amount of hours it represents
    */
-  def hours: Float = ((to.getTime - from.getTime)/1000)/60
+  def hours: Float = ((to.getTime - from.getTime)/1000)/60F/60F
 }
\ No newline at end of file