From 52061e817c02a6fb9b1048e8f090d09e821538c3 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 29 Sep 2018 14:42:19 +0200 Subject: [PATCH] debug: fix percentage --- cmd/restic/cmd_debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index 2230c7b1c..59a8aad2d 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -245,7 +245,7 @@ outer: eta := time.Duration(float64(remaining)/gps) * time.Second fmt.Printf("\r%d byte of %d done (%.2f%%), %.2f guesses per second, ETA %v", - i, len(input), float32(i)/float32(len(input)), + i, len(input), float32(i)/float32(len(input)*100), gps, eta) info = time.Now() }