server: reorg

This commit is contained in:
nym21
2026-04-02 13:19:56 +02:00
parent 099699872e
commit d92cf43c57
13 changed files with 56 additions and 52 deletions

View File

@@ -153,6 +153,6 @@ impl<T> Loss<T> {
.into_iter()
.rev()
.enumerate()
.map(move |(n, threshold)| (threshold, &ranges[len - 1 - n..]))
.map(move |(n, threshold)| (threshold, &ranges[len - 2 - n..]))
}
}

View File

@@ -208,6 +208,6 @@ impl<T> Profit<T> {
.into_iter()
.rev()
.enumerate()
.map(move |(n, threshold)| (threshold, &ranges[..n + 1]))
.map(move |(n, threshold)| (threshold, &ranges[..n + 2]))
}
}