]> 127.0.0.1 Git - front/.git/commitdiff
1 v0.1.20241021021703
authorqydysky <qydysky@foxmail.com>
Mon, 21 Oct 2024 02:15:18 +0000 (02:15 +0000)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 02:15:18 +0000 (02:15 +0000)
rollRule.go

index e840532117a7ac266f6591b943292964eb643bc4..fcafb49732ba3d20d5810aa5b167d4ae904b8d07 100644 (file)
@@ -31,7 +31,7 @@ func init() {
 
        rollRuleMap[`loop`] = func(backLink []*Back) {
                slices.SortStableFunc(backLink, func(a, b *Back) int {
-                       return int(time.Since(a.lastChosenT).Milliseconds()/int64(a.Weight+1) - time.Since(b.lastChosenT).Milliseconds()/int64(b.Weight+1))
+                       return int(time.Since(b.lastChosenT).Milliseconds()/int64(b.Weight+1) - time.Since(a.lastChosenT).Milliseconds()/int64(a.Weight+1))
                })
        }
 }