Browse Source

inverted operator

Sean Holcomb 5 years ago
parent
commit
8d6664a0dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/costmodel/allocation.go

+ 1 - 1
pkg/costmodel/allocation.go

@@ -1663,7 +1663,7 @@ func applyLoadBalancersToPods(lbMap map[serviceKey]*LB, allocsByService map[serv
 			}
 			hours := e.Sub(s).Hours()
 			// A negative number of hours signifies no overlap between the windows
-			if hours < 0 {
+			if hours > 0 {
 				totalHours += hours
 				allocHours[alloc] = hours
 			}