From 565116616db168ec5c8c9f459d625d1d01c268a7 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Tue, 12 Dec 2023 11:56:18 -0800 Subject: [PATCH] fix cpu (#560) --- pkg/stats/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stats/monitor.go b/pkg/stats/monitor.go index a3c0dfda..43ee33c5 100644 --- a/pkg/stats/monitor.go +++ b/pkg/stats/monitor.go @@ -192,7 +192,7 @@ func (m *Monitor) canAcceptRequest(req *rpc.StartEgressRequest) bool { available = total } else { // if already running requests, cap usage at 90% - available -= 0.9 * total + available -= 0.1 * total } switch req.Request.(type) {