Skip to content

Instantly share code, notes, and snippets.

@imeredith
Created November 26, 2012 09:01
Show Gist options
  • Select an option

  • Save imeredith/4147286 to your computer and use it in GitHub Desktop.

Select an option

Save imeredith/4147286 to your computer and use it in GitHub Desktop.
val q = (for {
b <- Build if b.account === account && b.start_time > som && b.start_time < eom
} yield b).groupBy(_.instance_size).map {
case (a, q) => (a, q.map(_.minutes).sum)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment