Skip to content

Commit

Permalink
Fix calculation of next multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCoB1123 committed Nov 29, 2018
1 parent f25a075 commit 6eaf091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {

if carry%step != 0 {
oldCarry := carry
carry -= carry%step + step
carry += step - carry%step
fmt.Printf("Tragekapazität %d ist nicht durch %d teilbar, wurde auf %d erhöht\n", oldCarry, step, carry)
}

Expand Down

0 comments on commit 6eaf091

Please sign in to comment.