From 0419fbda02aba8b24d0fd0c5f67a685d91a0c4d0 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 24 Aug 2023 21:46:05 +0900 Subject: [PATCH] for {} --- nostrh/cmd/tools/displayPercent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrh/cmd/tools/displayPercent.go b/nostrh/cmd/tools/displayPercent.go index a786416..94267a5 100644 --- a/nostrh/cmd/tools/displayPercent.go +++ b/nostrh/cmd/tools/displayPercent.go @@ -21,7 +21,7 @@ func DisplayProgressBar(current, total *int) { width = 100 } - for true { + for { progress := int(float64(*current) / float64(*total) * float64(width)) // バーの描画