gpgsm: Fix last commit

--

There was some test code left over and a check reversed.
This commit is contained in:
Werner Koch 2023-06-15 12:20:11 +02:00
parent c58067415f
commit a88aeee129
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 9 deletions

View File

@ -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)