From 67e98f4d411c0746cadb82da370e04adab26da9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sat, 25 May 2024 17:57:40 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=83=89=E4=B8=AD=E3=80=8D=E3=82=84=E3=80=8C=E3=83=80?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E6=B8=88=E3=81=BF?= =?UTF-8?q?=E3=80=8D=E7=8A=B6=E6=B3=81=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B=E4=BA=8B=E3=81=8C=E4=B8=8D=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + main.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 615b3f8..04b33e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * 予行演習モード * `make release-freebsd`の修正 * 使い方の修正 +* 「ダウンロード中」や「ダウンロード済み」状況を表示する事が不要 # 0.2.0 * ファイル名はパラメートルを付いたら、ファイル名は拡張子に diff --git a/main.c b/main.c index ea931f1..4b738d4 100644 --- a/main.c +++ b/main.c @@ -63,8 +63,6 @@ int progress_callback(void *cp, double dt, double dn, double ut, double un) { (void)un; double progress = (dn / dt) * 100.0; - char* status = "ダウンロード中"; - if (progress == 100.0) status = "ダウンロード済み"; printf("\r["); int barw = 50; @@ -76,7 +74,7 @@ int progress_callback(void *cp, double dt, double dn, double ut, double un) { else printf(" "); } - printf("] %.2f%% %s, %s", progress, filename, status); + printf("] %.2f%% %s", progress, filename); fflush(stdout); return 0;