mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Remove unused value
Removes an unused value in the alerthandler.go file, shown via lgtm.com. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
5741610f31
commit
997c6704b5
@ -98,7 +98,8 @@ func scaleService(alert requests.PrometheusInnerAlert, service scaling.ServiceQu
|
||||
|
||||
// CalculateReplicas decides what replica count to set depending on current/desired amount
|
||||
func CalculateReplicas(status string, currentReplicas uint64, maxReplicas uint64, minReplicas uint64, scalingFactor uint64) uint64 {
|
||||
newReplicas := currentReplicas
|
||||
var newReplicas uint64
|
||||
|
||||
step := uint64(math.Ceil(float64(maxReplicas) / 100 * float64(scalingFactor)))
|
||||
|
||||
if status == "firing" && step > 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user