mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
DEVEL15-windows-rxstats-default-20080307
LICENSE MIT set the defaults for RxEnablePeerStats and RxEnableProcessStats back to 1 (on) so admins are not surprised. (cherry picked from commit 73c2fa385a6f61483189dc68c4a10a49d65c8bf5)
This commit is contained in:
parent
ccd454443f
commit
8d4347a687
@ -556,8 +556,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;
|
||||
@ -1041,19 +1041,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user