浏览代码

inverted operator

Sean Holcomb 5 年之前
父节点
当前提交
8d6664a0dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 			}