diff options
author | Werner Koch <wk@gnupg.org> | 2023-06-15 12:20:11 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2023-06-15 12:20:11 +0200 |
commit | a88aeee12990478c218abff7f38728e47ee824bc (patch) | |
tree | 27425b7174fc6861d6208fc68859f4efe011b77c | |
parent | gpgsm: Print PROGRESS status lines. (diff) | |
download | gnupg2-a88aeee12990478c218abff7f38728e47ee824bc.tar.xz gnupg2-a88aeee12990478c218abff7f38728e47ee824bc.zip |
gpgsm: Fix last commit
--
There was some test code left over and a check reversed.
-rw-r--r-- | sm/server.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sm/server.c b/sm/server.c index 455f5707a..1510590a7 100644 --- a/sm/server.c +++ b/sm/server.c @@ -1566,17 +1566,9 @@ gpgsm_progress_cb (ctrl_t ctrl, uint64_t current, uint64_t total) char units[] = "BKMGTPEZY?"; int unitidx = 0; - if (current > 1024*1024*20) - { - static int closed; - if (closed) - close (5); - closed = 1; - } - if (total) { - if (total > current) + if (current > total) current = total; while (total > 1024*1024) |