aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sm/server.c10
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)