mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
gpgsm: Fix last commit
-- There was some test code left over and a check reversed.
This commit is contained in:
parent
c58067415f
commit
a88aeee129
10
sm/server.c
10
sm/server.c
@ -1566,17 +1566,9 @@ gpgsm_progress_cb (ctrl_t ctrl, uint64_t current, uint64_t total)
|
|||||||
char units[] = "BKMGTPEZY?";
|
char units[] = "BKMGTPEZY?";
|
||||||
int unitidx = 0;
|
int unitidx = 0;
|
||||||
|
|
||||||
if (current > 1024*1024*20)
|
|
||||||
{
|
|
||||||
static int closed;
|
|
||||||
if (closed)
|
|
||||||
close (5);
|
|
||||||
closed = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (total)
|
if (total)
|
||||||
{
|
{
|
||||||
if (total > current)
|
if (current > total)
|
||||||
current = total;
|
current = total;
|
||||||
|
|
||||||
while (total > 1024*1024)
|
while (total > 1024*1024)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user