summaryrefslogtreecommitdiff
path: root/human.go
diff options
context:
space:
mode:
Diffstat (limited to 'human.go')
-rw-r--r--human.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/human.go b/human.go
index 901c6b2..76a8704 100644
--- a/human.go
+++ b/human.go
@@ -97,7 +97,7 @@ func FormatDuration(d time.Duration) string {
ms := int(d.Milliseconds())
if ms > 100 {
// todo: print .3s, etc ?
- return fmt.Sprintf("%1.2fs", seconds/1000)
+ return fmt.Sprintf("%1.2fs", float64(seconds)/1000)
}
if ms > 0 {
result += fmt.Sprintf("%dms", ms)