ソースを参照

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
 			}