Skip to content

Commit d19ee38

Browse files
committed
fix bug
1 parent a9675b2 commit d19ee38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (u *Unit) getDurationMedian(input []time.Duration) time.Duration {
6868
return 0
6969
}
7070

71-
return time.Duration(int64(median) / int64(len(input)))
71+
return time.Duration(int64(median))
7272
}
7373

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

0 commit comments

Comments
 (0)