git-lfs/tools/humanize
Arran Walker 41ab43cbe6 Fix humanize's FormatByteRate() to work with 0s duration
On Windows, occasionally:

t := time.Now()
...
humanize.FormatByteRate(size, time.Since(t))

will result in time.Since returning 0. This commit clamps the duration to be
at least 1 nanosecond.
2018-10-24 15:02:40 +00:00
..
humanize_test.go Fix humanize's FormatByteRate() to work with 0s duration 2018-10-24 15:02:40 +00:00
humanize.go Fix humanize's FormatByteRate() to work with 0s duration 2018-10-24 15:02:40 +00:00
package.go tools: introduce sub-package 'humanize' 2017-06-13 14:00:18 -06:00