xfunding: fix Warnf format

This commit is contained in:
c9s 2023-03-24 03:19:03 +08:00
parent 84313dbdf9
commit 0f21c1fd8f
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -618,7 +618,7 @@ func (s *Strategy) detectPremiumIndex(premiumIndex *types.PremiumIndex) bool {
holdingPeriod := premiumIndex.Time.Sub(s.State.PositionStartTime)
if holdingPeriod < time.Duration(s.MinHoldingPeriod) {
log.Warnf("position holding period %s is less than %s, skip closing", holdingPeriod, s.MinHoldingPeriod)
log.Warnf("position holding period %s is less than %s, skip closing", holdingPeriod, s.MinHoldingPeriod.Duration())
return false
}