mirror of
https://github.com/fumiama/WireGold.git
synced 2025-09-26 19:21:11 +08:00
chore(head): make pool log interval longer
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -15,5 +15,5 @@
|
|||||||
# vendor/
|
# vendor/
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
config.yaml
|
/*.yaml
|
||||||
WireGold
|
WireGold
|
||||||
|
@@ -27,7 +27,7 @@ func selectPacket(buf ...byte) *PacketItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func status() {
|
func status() {
|
||||||
for range time.NewTicker(time.Second).C {
|
for range time.NewTicker(time.Minute).C {
|
||||||
out, in := packetPool.CountItems()
|
out, in := packetPool.CountItems()
|
||||||
logrus.Infoln(file.Header(), "packet outside:", out, "inside:", in)
|
logrus.Infoln(file.Header(), "packet outside:", out, "inside:", in)
|
||||||
out, in = pbuf.CountItems()
|
out, in = pbuf.CountItems()
|
||||||
|
Reference in New Issue
Block a user