diff options
Diffstat (limited to 'cipher/rndw32.c')
-rw-r--r-- | cipher/rndw32.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cipher/rndw32.c b/cipher/rndw32.c index 9954cafd7..2d107e009 100644 --- a/cipher/rndw32.c +++ b/cipher/rndw32.c @@ -477,9 +477,16 @@ slow_gatherer_windowsNT( void (*add)(const void*, size_t, int), int requester ) * worst-case estimate which is usually nowhere near the actual amount * required. For example it may report that 128K of memory is required, * but only return 64K of data */ -#warning How shall we disable get performacne data - if (0) - log_debug ("Warning: get performance data disabled\n"); + if (getenv("GNUPG_RNDW32_NOPERF")) + { + static int shown; + + if (!shown) + { + shown = 1; + g10_log_info ("note: get performance data has been disabled\n"); + } + } else { pPerfData = xmalloc (cbPerfData); for (;;) { |