Remove useless tcpMaxConn

This commit is contained in:
Doug MacEachern committed 2007-08-08 05:05:16 +00:00
1 parent 7a440f9727
commit 7e0b4af3ca
8 files changed
+3 -14

No files matched your search

-1
View File
@@ -2280,7 +2280,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
return ENOENT;
}
tcpstat->max_conn = -1;
tcpstat->active_opens = proto.u.tcp.initiated;
tcpstat->passive_opens = proto.u.tcp.accepted;
tcpstat->attempt_fails = proto.u.tcp.dropped;
-1
View File
@@ -2223,7 +2223,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
return errno;
}
tcpstat->max_conn = -1;
tcpstat->active_opens = mib.tcps_connattempt;
tcpstat->passive_opens = mib.tcps_accepts;
tcpstat->attempt_fails = mib.tcps_conndrops;
+1 -1
View File
@@ -1053,8 +1053,8 @@ static struct {
{ ID_tcpRtoAlgorithm, tcpsoff(xxx) },
{ ID_tcpRtoMin, tcpsoff(xxx) },
{ ID_tcpRtoMax, tcpsoff(xxx) },
#endif
{ ID_tcpMaxConn, tcpsoff(max_conn) },
#endif
{ ID_tcpActiveOpens, tcpsoff(active_opens) },
{ ID_tcpPassiveOpens, tcpsoff(passive_opens) },
{ ID_tcpAttemptFails, tcpsoff(attempt_fails) },
+2 -3
View File
@@ -2150,9 +2150,8 @@ sigar_tcp_stat_get(sigar_t *sigar,
if (status == SIGAR_OK) {
/* assuming field order, same in 2.2, 2.4 and 2.6 kernels */
/* Tcp: RtoAlgorithm RtoMin RtoMax */
ptr = sigar_skip_multiple_token(ptr, 4);
tcpstat->max_conn = sigar_strtoul(ptr);
/* Tcp: RtoAlgorithm RtoMin RtoMax MaxConn */
ptr = sigar_skip_multiple_token(ptr, 5);
tcpstat->active_opens = sigar_strtoull(ptr);
tcpstat->passive_opens = sigar_strtoull(ptr);
tcpstat->attempt_fails = sigar_strtoull(ptr);
-1
View File
@@ -2403,7 +2403,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
}
if (mib) {
tcpstat->max_conn = mib->tcpMaxConn;
tcpstat->active_opens = mib->tcpActiveOpens;
tcpstat->passive_opens = mib->tcpPassiveOpens;
tcpstat->attempt_fails = mib->tcpAttemptFails;
-1
View File
@@ -2804,7 +2804,6 @@ sigar_tcp_stat_get(sigar_t *sigar,
return status;
}
tcpstat->max_conn = mib.dwMaxConn;
tcpstat->active_opens = mib.dwActiveOpens;
tcpstat->passive_opens = mib.dwPassiveOpens;
tcpstat->attempt_fails = mib.dwAttemptFails;