mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-12 03:13:02 +08:00
use cache reduce malloc
This commit is contained in:
@@ -82,6 +82,10 @@ func outletSetConfig(resp http.ResponseWriter, req *http.Request) {
|
||||
mp.Err = SetConfig(ep.ConfigName, ep.Value)
|
||||
}
|
||||
|
||||
func GetThrowPacketRate() float64 {
|
||||
return throwPacketRate.value
|
||||
func GetTCPThrowPacketRate() float64 {
|
||||
return throwPacketRate.tcpTPR
|
||||
}
|
||||
|
||||
func GetMysqlThrowPacketRate() float64 {
|
||||
return throwPacketRate.mysqlTPR
|
||||
}
|
Reference in New Issue
Block a user