diff --git a/internal/exploit/storage.go b/internal/exploit/storage.go index e157cab..6f8f55c 100644 --- a/internal/exploit/storage.go +++ b/internal/exploit/storage.go @@ -76,6 +76,10 @@ func (s *Storage) ScaleTimeouts(workers, teams int) { continue } newTimeout := time.Duration(float64(ex.OriginalTimeout) / alpha) + + // Round down to nearest second. + newTimeout -= newTimeout % time.Second + logrus.Infof("Scaling timeout for exploit %s: %s -> %s", ex.ID, ex.Timeout, newTimeout) ex.Timeout = newTimeout }