xmaker: show signal margin range

This commit is contained in:
c9s 2024-10-09 12:07:33 +08:00
parent 022dcdf745
commit cea59ef9cf
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1599,9 +1599,19 @@ func (s *Strategy) CrossRun(
if err != nil { if err != nil {
return err return err
} }
if solveErr := scale.Solve(); solveErr != nil { if solveErr := scale.Solve(); solveErr != nil {
return solveErr return solveErr
} }
minAdditionalMargin := scale.Call(0.0)
middleAdditionalMargin := scale.Call(1.0)
maxAdditionalMargin := scale.Call(2.0)
s.logger.Infof("signal margin range: %.2f%% @ 0.0 ~ %.2f%% @ 1.0 ~ %.2f%% @ 2.0",
minAdditionalMargin*100.0,
middleAdditionalMargin*100.0,
maxAdditionalMargin*100.0)
return nil
} }
for _, signalConfig := range s.SignalConfigList { for _, signalConfig := range s.SignalConfigList {