mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
spacing
This commit is contained in:
parent
4301257d29
commit
f4f43311a6
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: server.c,v 1.247 2000/11/14 00:37:19 bwelling Exp $ */
|
/* $Id: server.c,v 1.248 2000/11/14 21:30:24 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -2250,10 +2250,10 @@ ns_server_dumpstats(ns_server_t *server) {
|
|||||||
}
|
}
|
||||||
numbercounters = dns_zone_numbercounters();
|
numbercounters = dns_zone_numbercounters();
|
||||||
fp = server->statsfp;
|
fp = server->statsfp;
|
||||||
fprintf(fp,"+++ Statistics Dump +++ (%ld)\n",
|
fprintf(fp, "+++ Statistics Dump +++ (%ld)\n",
|
||||||
(long)now);
|
(long)now);
|
||||||
for (i=0; i<numbercounters; i++)
|
for (i = 0; i < numbercounters; i++)
|
||||||
fprintf(fp,"%s %ld\n",dns_zonecount_names[i],
|
fprintf(fp, "%s %ld\n", dns_zonecount_names[i],
|
||||||
(long)server->globalcount[i]);
|
(long)server->globalcount[i]);
|
||||||
dns_zonemgr_lockconf(server->zonemgr, isc_rwlocktype_read);
|
dns_zonemgr_lockconf(server->zonemgr, isc_rwlocktype_read);
|
||||||
dns_zone_first(server->zonemgr, &zone);
|
dns_zone_first(server->zonemgr, &zone);
|
||||||
@ -2263,18 +2263,18 @@ ns_server_dumpstats(ns_server_t *server) {
|
|||||||
dns_name_totext(zoneorg, ISC_FALSE, &zonebuf);
|
dns_name_totext(zoneorg, ISC_FALSE, &zonebuf);
|
||||||
/* Make sure there is room for the NULL terminator */
|
/* Make sure there is room for the NULL terminator */
|
||||||
if (isc_buffer_availablelength(&zonebuf) < 1)
|
if (isc_buffer_availablelength(&zonebuf) < 1)
|
||||||
isc_buffer_subtract(&zonebuf,1);
|
isc_buffer_subtract(&zonebuf, 1);
|
||||||
isc_buffer_putuint8(&zonebuf, 0); /* NULL terminate */
|
isc_buffer_putuint8(&zonebuf, 0); /* NULL terminate */
|
||||||
zoneview = dns_zone_getview(zone);
|
zoneview = dns_zone_getview(zone);
|
||||||
viewname = zoneview->name;
|
viewname = zoneview->name;
|
||||||
if (dns_zone_hascounts(zone)) {
|
if (dns_zone_hascounts(zone)) {
|
||||||
for (i=0; i<numbercounters; i++)
|
for (i = 0; i < numbercounters; i++)
|
||||||
fprintf(fp,"%s %ld %s:%s\n",
|
fprintf(fp, "%s %ld %s:%s\n",
|
||||||
dns_zonecount_names[i],
|
dns_zonecount_names[i],
|
||||||
(long)dns_zone_getcounts(zone, i),
|
(long)dns_zone_getcounts(zone, i),
|
||||||
viewname, zonestore);
|
viewname, zonestore);
|
||||||
} else {
|
} else {
|
||||||
fprintf(fp,"nostatistics 0 %s:%s\n",
|
fprintf(fp, "nostatistics 0 %s:%s\n",
|
||||||
viewname, zonestore);
|
viewname, zonestore);
|
||||||
}
|
}
|
||||||
isc_buffer_invalidate(&zonebuf);
|
isc_buffer_invalidate(&zonebuf);
|
||||||
@ -2282,7 +2282,7 @@ ns_server_dumpstats(ns_server_t *server) {
|
|||||||
zone = next;
|
zone = next;
|
||||||
next = NULL;
|
next = NULL;
|
||||||
}
|
}
|
||||||
fprintf(fp,"--- Statistics Dump --- (%ld)\n",
|
fprintf(fp, "--- Statistics Dump --- (%ld)\n",
|
||||||
(long)now);
|
(long)now);
|
||||||
dns_zonemgr_unlockconf(server->zonemgr, isc_rwlocktype_read);
|
dns_zonemgr_unlockconf(server->zonemgr, isc_rwlocktype_read);
|
||||||
ns_server_closestatsfile(server);
|
ns_server_closestatsfile(server);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user