Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Sep 7, 2022
1 parent a9675b2 commit d19ee38
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 @@ -68,7 +68,7 @@ func (u *Unit) getDurationMedian(input []time.Duration) time.Duration {
return 0
}

return time.Duration(int64(median) / int64(len(input)))
return time.Duration(int64(median))
}

func (u *Unit) GetDuration(version string, ticks *bool, median *bool) (time.Duration, error) {
Expand Down

0 comments on commit d19ee38

Please sign in to comment.