From 73c2fa385a6f61483189dc68c4a10a49d65c8bf5 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 7 Mar 2008 17:37:35 +0000 Subject: [PATCH] windows-rxstats-default-20080307 LICENSE MIT set the defaults for RxEnablePeerStats and RxEnableProcessStats back to 1 (on) so admins are not surprised. --- src/WINNT/afsd/afsd_init.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 76d4bda645..1344c20aa7 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -554,8 +554,8 @@ int afsd_InitCM(char **reasonP) long logChunkSize; DWORD stats; DWORD dwValue; - DWORD rx_enable_peer_stats = 0; - DWORD rx_enable_process_stats = 0; + DWORD rx_enable_peer_stats; + DWORD rx_enable_process_stats; long traceBufSize; long maxcpus; long ltt, ltto; @@ -1039,19 +1039,23 @@ int afsd_InitCM(char **reasonP) code = RegQueryValueEx(parmKey, "RxEnablePeerStats", NULL, NULL, (BYTE *) &rx_enable_peer_stats, &dummyLen); if (code != ERROR_SUCCESS) { - rx_enable_peer_stats = 0; + rx_enable_peer_stats = 1; } if (rx_enable_peer_stats) afsi_log("RX Peer Statistics gathering is enabled"); + else + afsi_log("RX Peer Statistics gathering is disabled"); dummyLen = sizeof(rx_enable_process_stats); code = RegQueryValueEx(parmKey, "RxEnableProcessStats", NULL, NULL, (BYTE *) &rx_enable_process_stats, &dummyLen); if (code != ERROR_SUCCESS) { - rx_enable_process_stats = 0; + rx_enable_process_stats = 1; } if (rx_enable_process_stats) afsi_log("RX Process Statistics gathering is enabled"); + else + afsi_log("RX Process Statistics gathering is disabled"); dummyLen = sizeof(dwValue); dwValue = 0;