Skip to content

Commit

Permalink
fix spSum
Browse files Browse the repository at this point in the history
  • Loading branch information
beck-8 committed Jun 21, 2023
1 parent 2fa2030 commit 9c1ae8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ var datasetView = &cli.Command{
for _, piece := range dataSet.Pieces {
pieceSize += piece.PieceSize
carSize += piece.CarSize
spSum = len(piece.SpInfos)
if len(piece.SpInfos) > spSum {
spSum = len(piece.SpInfos)
}
}
pieceSum = len(dataSet.Pieces)

Expand Down

0 comments on commit 9c1ae8c

Please sign in to comment.