mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
800. [bug] dnssec-signzone produced incorrect statistics for
large zones. [RT #1133]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
800. [bug] dnssec-signzone produced incorrect statistics for
|
||||||
|
large zones. [RT #1133]
|
||||||
|
|
||||||
799. [bug] The ADB didn't find AAAA glue in a zone unless A6
|
799. [bug] The ADB didn't find AAAA glue in a zone unless A6
|
||||||
glue was also present.
|
glue was also present.
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dnssec-signzone.c,v 1.133 2001/03/27 23:43:13 bwelling Exp $ */
|
/* $Id: dnssec-signzone.c,v 1.134 2001/03/30 18:02:34 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -1795,8 +1795,8 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
if (printstats) {
|
if (printstats) {
|
||||||
isc_uint64_t runtime_us; /* Runtime in microseconds */
|
isc_uint64_t runtime_us; /* Runtime in microseconds */
|
||||||
isc_uint64_t runtime_100s; /* Same in hundredths of seconds */
|
isc_uint64_t runtime_ms; /* Runtime in milliseconds */
|
||||||
isc_uint64_t sigs_100s; /* Signatures per 100 seconds */
|
isc_uint64_t sig_ms; /* Signatures per millisecond */
|
||||||
|
|
||||||
isc_time_now(&timer_finish);
|
isc_time_now(&timer_finish);
|
||||||
|
|
||||||
@@ -1812,16 +1812,16 @@ main(int argc, char *argv[]) {
|
|||||||
nverified);
|
nverified);
|
||||||
printf("Signatures unsuccessfully verified: %10d\n",
|
printf("Signatures unsuccessfully verified: %10d\n",
|
||||||
nverifyfailed);
|
nverifyfailed);
|
||||||
#define MICROSECONDS 1000000
|
runtime_ms = runtime_us / 1000;
|
||||||
runtime_100s = 100 * runtime_us / MICROSECONDS;
|
printf("Runtime in seconds: %7u.%03u\n",
|
||||||
printf("Runtime in seconds: %7u.%02u\n",
|
(unsigned int) (runtime_ms / 1000),
|
||||||
(unsigned int) (runtime_100s / 100),
|
(unsigned int) (runtime_ms % 1000));
|
||||||
(unsigned int) (runtime_100s % 100));
|
|
||||||
if (runtime_us > 0) {
|
if (runtime_us > 0) {
|
||||||
sigs_100s = nsigned * 100 * MICROSECONDS / runtime_us;
|
sig_ms = ((isc_uint64_t)nsigned * 1000000000) /
|
||||||
printf("Signatures per second: %7u.%02u\n",
|
runtime_us;
|
||||||
(unsigned int) sigs_100s / 100,
|
printf("Signatures per second: %7u.%03u\n",
|
||||||
(unsigned int) sigs_100s % 100);
|
(unsigned int) sig_ms / 1000,
|
||||||
|
(unsigned int) sig_ms % 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user