Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
  • Loading branch information
roidelapluie committed Aug 1, 2020
1 parent 8bf79a0 commit 88137a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions model/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ func ParseDuration(durationStr string) (Duration, error) {
return
}
n, _ := strconv.Atoi(matches[pos])
d := time.Duration(n) * time.Millisecond
dur += d * mult
dur += time.Duration(n) * time.Millisecond * mult
}

m(2, 1000*60*60*24*365)
Expand Down

0 comments on commit 88137a4

Please sign in to comment.